python中的字典序
>>> s = ['ta','ad','at','At','eg'] >>> sorted(s) ['At', 'ad', 'at', 'eg', 'ta'] >>>
#python中的字符串排序,按字典序
我愿成为一棵树,静静的看着这个世界。
>>> s = ['ta','ad','at','At','eg'] >>> sorted(s) ['At', 'ad', 'at', 'eg', 'ta'] >>>
#python中的字符串排序,按字典序