上一页 1 2 3 4 5 6 7 ··· 12 下一页
摘要: import os,time,shutil root=r'D:\pylx\20210622' while True: for item in os.listdir(root): abs_path = os.path.join(root, item) if time.time()-os.path.ge 阅读全文
posted @ 2021-06-25 14:36 小蕊-zr 阅读(30) 评论(0) 推荐(0) 编辑
摘要: sql = '''select case left(d.name,2) when 'DD' then '*' when 'DW' then '*' when 'ZN' then '*' when 'DL' then '*' WHEN 'HB' then '华北' when 'ZH' then'*' 阅读全文
posted @ 2021-06-25 13:58 小蕊-zr 阅读(539) 评论(0) 推荐(0) 编辑
摘要: https://jingyan.baidu.com/article/fb48e8becf91a16e622e14ff.html 阅读全文
posted @ 2021-06-24 17:40 小蕊-zr 阅读(145) 评论(0) 推荐(0) 编辑
摘要: import os,random,yaml def readyml(yamlPath):#定义一个读取yaml文件的函数 if not os.path.isfile(yamlPath): raise FileNotFoundError("文件路径不存在, 请检查路径是否正确: %s" % yamlP 阅读全文
posted @ 2021-06-24 17:09 小蕊-zr 阅读(432) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/Nire_Yeyu/article/details/104683888/ 安装:pip install pyinstaller 安装时报错,原因是环境变量需要在多配一个路径 打包为exe,版本尽量选择python3.6+32位版本,因为win64位系统向下 阅读全文
posted @ 2021-06-24 11:30 小蕊-zr 阅读(73) 评论(0) 推荐(0) 编辑
摘要: SELECT * FROM information_schema.innodb_lock_waits ;SELECT * FROM information_schema.innodb_locks ;SELECT * FROM information_schema.innodb_trx ;SELECT 阅读全文
posted @ 2021-06-23 17:54 小蕊-zr 阅读(82) 评论(0) 推荐(0) 编辑
摘要: import random,string res_lit=[] for i in range(100): rand_num = str(random.randint(0, 9999)) rand_num=rand_num.zfill(4) username="zr"+rand_num passwor 阅读全文
posted @ 2021-06-22 18:13 小蕊-zr 阅读(105) 评论(0) 推荐(0) 编辑
摘要: import os,datetime,shutil path=r'D:\pylx\20210622' files=os.listdir(path) today=datetime.datetime.now() dqr=today.strftime('%Y%m%d') for i,f in enumer 阅读全文
posted @ 2021-06-22 16:39 小蕊-zr 阅读(213) 评论(0) 推荐(0) 编辑
摘要: touch test_{1..300}.txt #!/bin/sh source /etc/profile path="/a/zl/tmp" if [ ! -d path ]; then mkdir -p $path fi for index in {0..1000} do num=`expr $i 阅读全文
posted @ 2021-06-22 15:16 小蕊-zr 阅读(773) 评论(0) 推荐(0) 编辑
摘要: import os,randompath=r"D:\pylx\20210622"for i in range(20): ym = '202106' d = random.randint(10, 22) dd = str(d) rand_num = str(random.randint(0, 9999 阅读全文
posted @ 2021-06-22 14:15 小蕊-zr 阅读(1147) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 12 下一页