import os
count = 0 # 想要重命名的起始标号
path = "你自己的路径"
for _,_,filenames in os.walk(path):
for name in filenames:
fold = os.path.join(path,name)
fnew = os.path.join(path,"00"+str(count)+".jpg")
os.rename(fold,fnew)
count+=1
效果如图