python 批量重命名

import os
ll=os.listdir(".")
c=0
for f in ll:
c=c+1
os.rename(f,str(c)+".jpg")

posted @ 2017-01-19 14:18  ahuo  阅读(307)  评论(0编辑  收藏  举报