python字符串比较大小

zfill函数

xs = ['00001','00013','00014','00002','00003','00022']
print (sorted(xs))

 

posted on 2019-08-08 17:54  黎明NB  阅读(3532)  评论(0编辑  收藏  举报

导航