zfill函数
xs = [‘00001‘,‘00013‘,‘00014‘,‘00002‘,‘00003‘,‘00022‘] print (sorted(xs))
python字符串比较大小
原文:https://www.cnblogs.com/1a2a/p/11322723.html