摘要: 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 阅读(119) 评论(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 阅读(224) 评论(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 阅读(793) 评论(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 阅读(1216) 评论(0) 推荐(0) 编辑
摘要: import os path=r"D:\pylx\20210622" for i in range(20): a="202106180030253{}.file".format(i) file_name = path + "\\" + a isExists=os.path.exists(file_n 阅读全文
posted @ 2021-06-22 13:18 小蕊-zr 阅读(73) 评论(0) 推荐(0) 编辑