摘要:
dt 为设定的时间,转化为时间戳,在主循环里一分钟循环一次,读取当前的时间戳,当前时间大于设定时间,清空目录。import os,sys import shutil import time def clear(): cur_file = os.path.basename(sys.argv[0]) dir_content = [x for x in os.listdir(".") if x ... 阅读全文
摘要:
1.把doc文件复制到记事本里2.python代码asn_statu = 0asn_txt_list = []with open("D:/share/doc/38413.txt",encoding="gbk") as file: last_line = "" for line in file: if 阅读全文