Dec-06-2019, 03:53 AM
Hello, I am new to python and would like to know how to quickly change the end of my link to multiple files according to the following criteria: I only want to change the last letter (range A to F) and the last number (range 0.1 at 0.6).
See the code:
import os
os.rename (r'C: \ Users \ Name \ Downloads \ foo14A.png ', r'C: \ Users \ Name \ Downloads \ foo149.1.png')
print ('ok')
See the code:
import os
os.rename (r'C: \ Users \ Name \ Downloads \ foo14A.png ', r'C: \ Users \ Name \ Downloads \ foo149.1.png')
print ('ok')