摘要: >>> sorted([38,4,-98]) [-98, 4, 38] >>> sorted([39,5,12,-34],key = abs) [5, 12, -34, 39] >>> sorted(['Yyt','Xx','dh']) ['Xx', 'Yyt', 'dh'] #ASCII码小写字母大 >>> sorted(['Yyt','Xx','dh']... 阅读全文
posted @ 2017-08-09 13:24 sniperlr 阅读(100) 评论(0) 推荐(0)