String Compare “Logic”

前端 未结 11 1642
悲哀的现实
悲哀的现实 2020-12-06 19:06

Can anybody please tell me why the string comparisons below deliver these results?

>>\"1040\"<=\"12000\"  
True  
>> \"1040\"<=\"1         


        
11条回答
  •  囚心锁ツ
    2020-12-06 19:30

    "10000" <= "1040" <= "12000" in the same way that "fabricate" <= "fact" <= "foolish".

提交回复
热议问题