'''@Desc:os模块的常用方法使用 os.getcwd() os.path.exists(dir) os.listdir(dir) os.path.join(dir, file) os.path.isfile(fullpath) os.path.isdir(fullpath) os.path. ...
分类:
其他好文 时间:
2020-07-13 21:29:20
阅读次数:
73
1.List非空判断 当List的size为1,但里面都是空值时,可以用 list!=null && list.get(0)!=null 判断 2.StringUtils.join()方法 使用前需先引入common-lang3的jar包 基本上此方法需传入2个参数,第一个参数是传入一个任意类型数组 ...
分类:
编程语言 时间:
2020-07-13 21:11:48
阅读次数:
63
1.问题描述 有一个函数$f:R\rightarrow R$ ,现在不知道函数 $f(x)$的具体形式,给定满足函数关系的一组训练样本$\left \{ (x_{1},y_{1}),...,(x_{N},y_{N}) \right \}$,N=300,请使用线性回归模型拟合出函数$y=f(x)$。( ...
分类:
其他好文 时间:
2020-07-13 18:48:49
阅读次数:
102
相邻的border会平分所占的区域,出现一个斜线, .my_triangle{ width: 10px; height: 10px; background-color: blue; border-width: 100px ; border-style: solid; border-left-colo ...
分类:
其他好文 时间:
2020-07-13 18:40:16
阅读次数:
71
添加删除记录(原生) 示例: /*style.css*/ @CHARSET "UTF-8"; #total { width: 450px; margin-left: auto; margin-right: auto; } ul { list-style-type: none; } li { bord ...
分类:
Web程序 时间:
2020-07-13 15:39:11
阅读次数:
71
脑筋急转弯 每只蚂蚁都一样,相遇之后,相当于两人互换身份,继续朝原来的方向前进。因此,找出距离朝向端点最远的蚂蚁需要走多久,就是答案。 class Solution { public int getLastMoment(int n, int[] left, int[] right) { int re ...
分类:
其他好文 时间:
2020-07-13 13:24:49
阅读次数:
54
饼图标签展示数值 配置项: option = { title: { text: '项目时间分布', left: 'center' }, tooltip: { trigger: 'item', formatter: '{a} <br/>{b} : {c} ({d}%)' }, legend: { or ...
分类:
其他好文 时间:
2020-07-13 11:34:37
阅读次数:
290
python语言: import re while True: try: line = raw_input() li = re.findall(r'[a-zA-z0-9 ]', line) s = ''.join(set(li)) dic = {} for x in s: dic[x] = line ...
分类:
编程语言 时间:
2020-07-12 22:08:22
阅读次数:
82
BFS和DFS DFS遍历使用递归(隐式使用栈): void dfs(TreeNode root) { if (root == null) { return; } dfs(root.left); dfs(root.right); } BFS遍历使用队列 void bfs(TreeNode root) ...
分类:
其他好文 时间:
2020-07-12 22:04:02
阅读次数:
66
圣杯布局 1.结构先加载主体,再加载左右 2.将三者都 float:left , 左右再加上一个position:relative(因为相对定位后面会用到)?3、middle 部分 width:100% 占满 ? 此时 middle 占满了,所以要把 left 拉到最左边,使用 marginlef ...
分类:
其他好文 时间:
2020-07-12 18:57:22
阅读次数:
74