Writing from .txt to .md in python
This question already has an answer here:
If you're not changing the contents you could just change the file extension. See this SO answer for help
Change the file extension for files in a folder in Python
Edited based on comment If you want to make a copy this is the simplest way I believe
import shutil
shutil.copyfile("testcopy.txt", "testcopy.md")
链接地址: http://www.djcxy.com/p/42324.html
上一篇: 如何让Python将文件复制到桌面
下一篇: 在python中从.txt写入.md