zjm1126 zjm1126 - 3 months ago 13
Python Question

How to rename a file using Python

I want to change

a.txt
to
b.kml
.

YOU YOU
Answer

Use os.rename('a.txt','b.kml')