摘要: 列表的第二部分(1)列表的排序1)使用方法sort()可对列表进行永久性排序food = ['apple','orange','pear','grape']food.sort()print(food)看上面到结果,发现他是按照字典序排的还可以按照字典序相反的方向排序只... 阅读全文
posted @ 2018-04-27 12:15 lived 阅读(153) 评论(0) 推荐(0)