I have a list of strings with my filenames:
flist = ['0.png','10.png', '3.png', '4.png', '100.png']
flist.sort()
print(flist)
Output:
['0.png', '10.png', '100.png', '3.png', '4.png']
But I want:
['0.png', '3.png', '4.png', '10.png', '100.png']
Is there a simple way to do this?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…