How do I use a method to change the file extension in Python?

前端 未结 0 1388
死守一世寂寞
死守一世寂寞 2021-02-05 08:34

I have a folder full of .txt files and would like to change them to .dat using a method. From what I have researched I have constructed the portion of code below. However, when

相关标签:
回答
  • 消灭零回复
提交回复
热议问题