码迷,mamicode.com
首页 > 编程语言 > 详细

python中的字典序

时间:2015-03-20 18:02:29      阅读:165      评论:0      收藏:0      [点我收藏+]

标签:

>>> s = [‘ta‘,‘ad‘,‘at‘,‘At‘,‘eg‘]
>>> sorted(s)
[‘At‘, ‘ad‘, ‘at‘, ‘eg‘, ‘ta‘]
>>> 
#pythonz中的字符串排序,按字典序

python中的字典序

标签:

原文地址:http://www.cnblogs.com/kirsten/p/4353976.html

踩
(0)
赞
(0)
   
举报
评论 一句话评论(0)
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!