📜  排序python代码示例中的计数器

📅  最后修改于: 2022-03-11 14:45:38.092000             🧑  作者: Mango

代码示例1
>>> from collections import Counter
>>> x = Counter({'a':5, 'b':3, 'c':7})
>>> x.most_common()
[('c', 7), ('a', 5), ('b', 3)]