mlist = midct.items() 这么简单? list按第几个元素排序的方式要用到lamda函数: sorted(mlist, key=lambda d: d[1], reverse=True) ,d[1]表示第二个元素。