python文件批量改名 python對文件進行批量改名用到的是os模塊中的listdir方法和rename方法。 os.listdir(dir) :獲取指定目錄下的所有子目錄和文件名 os.rename(原文件名,新文 ...