How numbers in string format are sorted?

后端 未结 0 1087
忘掉有多难
忘掉有多难 2021-01-11 13:37

there is list

a = ["100", "2", "33", "-10"]

when I apply sort like this

sorted(a) 


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题