摘要:
import osimport fnmatchfor filename in os.listdir('.'): if fnmatch.fnmatch(filename, '*.txt'): # 匹配模式为星号,表示任意的字符 os.remove(filename) 阅读全文
摘要:
import random#导入随机模块def fileduoduo(n): file_name = random.randint(000000, 999999)#文件名按六位数字随机生成 content = random.randint(000000000,999999999) n+=1 if n 阅读全文