zjm1126 zjm1126 - 1 year ago 90
Python Question

How to rename a file using Python

I want to change

a.txt
to
b.kml
.

YOU YOU
Answer Source

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