Fork me on GitHub
摘要: operator.itemgetter函数operator模块提供的itemgetter函数用于获取对象的哪些维的数据,参数为一些序号。看下面的例子 要注意,operator.itemgetter函数获取的不是值,而是定义了一个函数,通过该函数作用到对象上才能获取值。 sorted函数用来排序,so 阅读全文
posted @ 2019-04-27 21:48 鲍鲍tql 阅读(328) 评论(0) 推荐(0) 编辑