批文件重命名
# # !/usr/bin/env python # # 2.py # # use UTF-8 # # Python 3.6.0 import os path = '/home/ubuntu/图片/data_anti/4' count = 1 for file in os.listdir(path): os.rename(os.path.join(path,file),os.path.join( path, "mouse."
批文件重命名
# # !/usr/bin/env python # # 2.py # # use UTF-8 # # Python 3.6.0 import os path = '/home/ubuntu/图片/data_anti/4' count = 1 for file in os.listdir(path): os.rename(os.path.join(path,file),os.path.join( path, "mouse."