2014年5月17日

Python sorted

摘要: sorted函数:iterable:是可迭代类型;cmp:用于比较的函数,比较什么由key决定,有默认值,迭代集合中的一项;key:用列表元素的某个属性和函数进行作为关键字,有默认值,迭代集合中的一项;reverse:排序规则. reverse = True 或者 reverse = False,有... 阅读全文

posted @ 2014-05-17 19:29 Stomach_ache 阅读(235) 评论(0) 推荐(0)

导航