path = "test1/"
files = os.listdir(path)
files.sort(key=lambda x: int(x.split('.')[0]))
for filename in files:
print(filename)
2024-03-29 09:34:04
path = "test1/"
files = os.listdir(path)
files.sort(key=lambda x: int(x.split('.')[0]))
for filename in files:
print(filename)