import os
import random
f_list=os.listdir('d:/py_code/依维柯全顺')
a=random.randint(100000000,999999999)
oldpath='d:/py_code/依维柯全顺/'
newpath='d:/py_code/111/'
for name in f_list:
a=random.randint(1000000000,9999999999)
os.renames(oldpath+name,newpath+'111'+str(a)+'_car_1.jpg')
python批量修改文件名字
最新推荐文章于 2024-09-18 10:02:59 发布