批量修改文件名 1、给文件名批量加前缀 import os #suffixName = 'CL_' for root,dirs,files in os.walk('./'): for FileName in files: if FileName != 'rename_bat.py': print(FileName) FileRename = 'CL_' + FileName os.rename(FileName, FileRename)