Created
September 11, 2017 19:06
-
-
Save yongjun823/82c5cb9e221f49fe5936c76bf72c981c to your computer and use it in GitHub Desktop.
name rename in folder
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import os | |
| for idx, name in enumerate(os.listdir('.')): | |
| os.rename(name, str(idx) + '.png') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment