||
If a list of numbers are stored in strings, please note that they are sorted as ASCAII.
For example:
>>>aa = ['1101', '201', '111']
>>>aa.sort()
>>>print aa
The result is ['1101', '111', '201']
Archiver|手机版|科学网 ( 京ICP备07017567号-12 )
GMT+8, 2024-4-20 11:12
Powered by ScienceNet.cn
Copyright © 2007- 中国科学报社