python sorted函数(结合使用lambda和operator.itemgetter()来对字典进行排序)
>>>mydict={'Li':['M',7],...'Zhang':['E',2],...'Wang':['P',3],...'Du':['C',2],...'Ma':['C',9],...'Zhe':['H',7]}>>>>>>fromoperatorimportitemgetter>>>sorted(mydict.iteritems(),key=lambda(k,v):operator.it