This commit is contained in:
louiscklaw
2025-02-01 01:19:51 +08:00
commit 3b0b154910
32597 changed files with 1171319 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
import os
for filename in os.listdir():
if filename.endswith(".jpg"):
num = int(os.path.splitext(filename)[0])
new_filename = "{:03d}.jpg".format(num)
os.rename(filename, new_filename)