11 lines
228 B
Plaintext
11 lines
228 B
Plaintext
import os
|
|
|
|
def main():
|
|
for count, filename in enumerate(os.listdir()):
|
|
dst = f"{str(count)}.jpg"
|
|
src =f"./{filename}"
|
|
dst = f"./{dst}"
|
|
os.rename(src,dst)
|
|
|
|
if __name__ == '__main__':
|
|
main() |