Код: Выделить всё
import os
folder = "Trainingtest1"
files = os.listdir(folder)
for name in files:
print(name)
0.txt, 1.txt, 2.txt, 3.txt), но вместо этого я получил что-то вроде:
0.txt
1.txt
10.txt
2.txt
3.txt
Подробнее здесь: https://stackoverflow.com/questions/798 ... nforce-num
Мобильная версия