'''@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
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
1. 下载node: 查看版本(node -v、npm -v) 常用指令:cd 文件路径 :更改文件路径; cls:清屏 2. 使用下面的命令更改 npm 的源地址为淘宝源: npm config set registry http://registry.npm.taobao.org/ 3. 更改好 ...
分类:
其他好文 时间:
2020-07-12 18:44:59
阅读次数:
90
创建Swram集群 docker swarm init 当前只有一个节点,开放防火墙2377端口 firewall-cmd --zone=public --add-port=2377/tcp 然后开启其他Docker虚拟机的Docker服务 将 docker swarm join --token S ...
分类:
其他好文 时间:
2020-07-12 17:09:54
阅读次数:
74
工具:Navicat Premium 封装的mysql。 1.表的创建 -- 创建数据库 create database school; use school; -- 建表 -- 学生表:学生编号,学生姓名, 出生年月,学生性别 create table Student(s_id varchar(1 ...
分类:
数据库 时间:
2020-07-12 16:49:03
阅读次数:
67
Quagga BGP and exabgp: work together for BGP blackhole implementation In our test case we will deploy two machines: 10.0.3.114 for exabgp (it announce ...
分类:
其他好文 时间:
2020-07-12 12:21:39
阅读次数:
70
1.性能下降的表现 执行时间长 2.性能下降的原因 查询语句写的不好 建立的索引失败 关联join太多 服务器调优和配置参数导致 3.做法 写出高质量的sql 保证索引不失效 ...
分类:
数据库 时间:
2020-07-12 12:20:22
阅读次数:
58
1.大纲 内连接:inner join 外连接 (1)左外连接(左边的表不加限制):left join (2)右外连接(右边的表不加限制):right join (3)全外连接(左右表都不加限制):full join(MySQL不支持) (4)只有左表数据 (5)只有右表数据 自连接(同一张表内的连 ...
分类:
其他好文 时间:
2020-07-12 12:10:37
阅读次数:
73
装饰器 变量作用域 局部作用域 全局作用域 高阶函数 函数名可以作为参数输入 函数名可以作为返回值 闭包 示例代码 def outer(): x = 10 def inner(): print(x) return inner 定义 如果在一个内部函数里,对在外部作用域(不在大全局作用域)的变量进行引 ...
分类:
其他好文 时间:
2020-07-12 00:39:41
阅读次数:
62