摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文
摘要:
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 阅读全文