#!/usr/bin/python3
import os, sys

str = os.listdir("c:\\11")
print(str)

for i in str:
    i="c:\\11\\"+i
    newstr = ''.join(i)
    newstr = newstr + ".jpg"
    print(newstr)
    os.rename(i,newstr)

python3 更改文件后缀名

相关文章:

  • 2021-05-18
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-10-05
  • 2022-01-31
  • 2021-10-13
猜你喜欢
  • 2022-12-23
  • 2021-06-11
  • 2021-09-10
  • 2021-12-14
  • 2021-06-18
  • 2022-12-23
相关资源
相似解决方案