摘要: Python list内置sort()方法用来排序,也可以用python内置的全局sorted()方法来对可迭代的序列排序生成新的序列 一,最简单的排序 1.使用sort排序 使用sort()方法对list排序会修改list本身,不会返回新list,通常此方法不如sorted()方便,但是如果你不需 阅读全文
posted @ 2017-10-11 13:30 JahanGu 阅读(31324) 评论(1) 推荐(4) 编辑