python小程序
-- 批量给文件夹重命名
import os
path = 'C:\\Users\\tylerzhu\\Desktop\\icon'
for file in os.listdir(path):
if os.path.isfile(os.path.join(path,file))==True:
newname = file.replace("scroll_1", "scroll_00")
os.rename(os.path.join(path,file),os.path.join(path,newname))
print(file)
每天进步一点点
分享快乐