#coding=utf-8  
  
import os
path = '/opt/fish/'
count = 1
for file in os.listdir(path):
    os.rename(os.path.join(path,file),os.path.join(path,str(count)+".jpg"))
    count+=1

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-02-13
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-06-17
  • 2022-12-23
  • 2021-05-29
  • 2021-06-18
  • 2021-10-16
  • 2021-06-15
  • 2022-02-07
相关资源
相似解决方案