>>> s = ['ta','ad','at','At','eg'] >>> sorted(s) ['At', 'ad', 'at', 'eg', 'ta'] >>>
#python中的字符串排序,按字典序
转载于:https://www.cnblogs.com/kirsten/p/4353976.html
>>> s = ['ta','ad','at','At','eg'] >>> sorted(s) ['At', 'ad', 'at', 'eg', 'ta'] >>>
#python中的字符串排序,按字典序
转载于:https://www.cnblogs.com/kirsten/p/4353976.html