zjm1126 zjm1126 - 6 months ago 58
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')