# 将your path修改你自己的文件路径
import os
import sys
path = "your path"
filelist = os.listdir(path)
i = 1
for oldname in filelist:
number = str(i).zfill(2)
newname = number + " " + oldname
os.rename(path+"\\" + oldname, path+"\\" + newname)
i += 1
print("Rename Finished.")
文件名前添加序号
最新推荐文章于 2024-08-12 17:32:09 发布