python中的字典序

>>> s = ['ta','ad','at','At','eg']
>>> sorted(s)
['At', 'ad', 'at', 'eg', 'ta']
>>> 
#python中的字符串排序,按字典序
posted @ 2015-03-20 16:26  &苍云  阅读(2959)  评论(0编辑  收藏  举报