摘要:
不说 上代码 做笔记import operatorx = [{2: 2}, {2: 4}, {2: 3}, {2: 1}, {2: 0}]sorted_x = sorted(x.__iter__(), key=operator.itemgetter(2))>>> sorted_x[{2: 0}, {2: 1}, {2: 2}, {2: 3}, {2: 4}] 阅读全文
posted @ 2011-07-19 18:11
信仰123
阅读(137)
评论(0)
推荐(0)