1 import urllib.request 2 #获取一个get请求 3 response = urllib.request.urlopen("http://www.baidu.com") 打开网页并返回网页内容给response print(response.read().decode('ut ...
分类:
编程语言 时间:
2021-05-23 23:31:18
阅读次数:
0
C语言 使用long类型: #include "math.h" int reverse(int x){ int max = pow(2,31)-1; int min = pow(2,31)*-1; long n=0; while (x!=0){ n = n*10 + x%10; x = x/10; ...
分类:
编程语言 时间:
2021-05-23 23:09:40
阅读次数:
0
class Solution { public: int reverse(int x) { // cout << 1111 << endl; long long ret = 0; long long y = x; int f = 0; if(y < 0) f = 1, y = -y; // cout ...
分类:
其他好文 时间:
2021-05-23 23:04:46
阅读次数:
0
目录 1.vcenter 6.7安装要求;2.vcenter第一阶段安装失败,提示:"Unable to proceed with stage 2 of the deployment process. Click close to exit the installer.”3.无DNS下部署安装vce ...
分类:
其他好文 时间:
2021-05-23 22:59:26
阅读次数:
0
flutter 切换环境 终端运行flutter channel命令查看当前flutter 环境 分支 Mac:~ mac$ flutter channel Flutter channels: master dev beta * stable 带有*号的为当前分支切换分支命令 flutter cha ...
分类:
其他好文 时间:
2021-05-04 16:27:02
阅读次数:
0
先说一嘴:sass和scss的区别: 异同:简言之可以理解scss是sass的一个升级版本,完全兼容sass之前的功能,又有了些新增能力。语法形式上有些许不同,最主要的就是sass是靠缩进表示嵌套关系,scss是花括号 //sass 太费眼了 .father width:100px; .son wi ...
分类:
其他好文 时间:
2021-05-04 16:24:18
阅读次数:
0
具体命名规范 规范一:见名知意。 规范二:驼峰命名方式(一高一低),驼峰有利于单词之间进行有效的区分。比如: BiaoShiFu 规范三:类名和接口名:类名和接口名首字母大写,后面的单词首字母也要大写。比如:USerTest 规范四:所有常量名全部大写,并且单词和单词之间要用下划线隔开! efw i ...
分类:
编程语言 时间:
2021-05-04 16:09:08
阅读次数:
0
Stream (流) :数据通道,用于操作数据源(数组、集合等)所生成的元素序列。 1、 Stream 自己不会存储数据 2、Stream不会改变源对象,返回的是一个持有操作结果的新的Stream. 3、Stream是延迟执行的(等到需要结果的时候才会执行)。 Stream的三个步骤: 1、创建St ...
分类:
编程语言 时间:
2021-05-04 16:00:44
阅读次数:
0
原题链接 考察:Floyd 思路: 传递闭包应用题.也可以用拓扑排序,这里先练下传递闭包.拓扑排序以后补 传递闭包模板: 1 for(int k=1;k<=n;k++) 2 for(int i=1;i<=n;i++) 3 for(int j=1;j<=n;j++) 4 if(g[i][k]&&g[k ...
分类:
编程语言 时间:
2021-05-04 15:40:20
阅读次数:
0