摘要: import os for files in os.listdir('output'): if files.endswith(".py"): os.remove(os.path.join('output',files)) 下面是删除所有以及子目录 import os,shutil def del_f 阅读全文
posted @ 2020-01-31 19:43 you-wh 阅读(3101) 评论(0) 推荐(0) 编辑
Fork me on GitHub