在磁盘中找到关键字文件 并删除
时间:2021-03-15 11:04:56
收藏:0
阅读:0
# coding=utf-8
import os
n = 0
for root, dir, files in os.walk(‘.‘):
for name in files:
if ("final" not in name):
n+=1
print(n,name)
os.remove(os.path.join(root,name))
评论(0)