zfill函数

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

python字符串比较大小

 

相关文章:

  • 2022-12-23
  • 2021-11-13
  • 2022-02-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-28
  • 2021-10-11
  • 2022-12-23
  • 2021-04-22
  • 2022-12-23
相关资源
相似解决方案