摘要: 一. itemgetter的使用方法 itemgetter()返回一个指定列表下标或者字典键的函数,通过这个返回的函数作用到对象上,获得才能取得相应的值 1. 排序字典列表的一个例子 2. itemgetter在一般列表中的用法 3. itemgetter在元组中的用法,其中key为一个函数或者la 阅读全文
posted @ 2018-07-31 17:34 坚强的小蚂蚁 阅读(788) 评论(0) 推荐(0) 编辑