- 博客(5)
- 收藏
- 关注
原创 多进程多线程的坑
from multiprocessing import Process import threading import time class Job: def __init__(self): self.a = 'a' def run(self): self.b = 'b' while True: pri...
2018-05-16 11:14:59
400
原创 工作学习之---python大法的坑
2018-03-03循环中 in 和 removea = [i for i in range(10)]随便删除一个0-9的数 比如4for index, value in enumerate(a): if value == 4: a.remove(value) print(index, value)输出:0 01 12 23 34 45 66 77 88 9由上可见...
2018-03-03 15:29:48
222
原创 工作学习之。。。MySQL
查看mysql占用空间大小use information_schema; # 更换到这个数据库select concat(round(sum(DATA_LENGTH/1024/1024),2), 'MB') as data from TABLES; # 查看占用空间大小请参考:查看MYSQL数据库占用空间大小...
2018-03-02 18:35:15
193
原创 工作学习之。。。git
git commit -a -mgit -mgit add -A # add changes from all tracked and untracked filesgit config core.fileMode false # 让git忽略文件权限的改变
2018-03-02 18:31:25
168
原创 工作学习之---linux
2017-12-251.tar 压缩文件时排除文件tar zcvf monitor.tar.gz monitor --exclude "*log" --exclude "/monitor/logs"压缩后的里面没有 log结尾的文件 也没有monitor/logs文件下的文件2.tar 预览 不解压tar tvf monitor.tar.gz2017-12-293.df 查看磁盘相关信息df ...
2017-12-25 18:35:56
163
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人