摘要: operator库常用方法 operator.itemgetter 返回一个可调用对象,获取项目使用的操作数的__getitem__()方法操作数。如果指定了多个项,则返回一个查找值元组。 >>> itemgetter(1)('ABCDEFG')'B'>>> itemgetter(1,3,5)('A 阅读全文
posted @ 2018-03-30 11:34 Fate0729 阅读(1408) 评论(0) 推荐(0)