标签:+= utf-8 port path wal pat final 删除 coding
# 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))
标签:+= utf-8 port path wal pat final 删除 coding
原文地址:https://www.cnblogs.com/v113/p/14528054.html