from operator import itemgetter
a={"1":"a","3":"c","2":"b"}
sorted(a.items(), key=itemgetter(1), reverse=False)
sorted(a.items())
sorted(a.items(), key=itemgetter(1), reverse=False)sorted(a.items(), key=itemgetter(1), reverse=False)
阅读(537) | 评论(0) | 转发(0) |