[Python]批量重命名,修改文件名中的部分字符串
时间:2020-01-10 23:52:23
收藏:0
阅读:447
上一版PowerShell版本的莫名其妙的有些改不了:https://www.cnblogs.com/alfredsun/p/10124230.html
更新一个Python版本:
import os files = os.listdir(os.getcwd()) for file in files: os.rename(file,file.replace(‘FLAC‘,‘FLACx2‘))
效果:
原文:https://www.cnblogs.com/alfredsun/p/12178382.html
评论(0)