我们知道Python的内置dictionary数据类型是无序的,通过key来获取对应的value。 ... l.sort(lambda a,b :cmp(a[1],b[1]))(cmp前加“-”表示降序排序).
確定! 回上一頁