python批量重命名文件 import os fdir='c:\\' #换成你自己的目录。可以为空,表示当前目录 fs=os.listdir(fdir) for f in fs: os.rename(f,f_new) #f_new是新文件名称