📜  有序字典 python 代码示例

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

代码示例5
list = ["a","c","c","a","b","a","a","b","c"]
cnt = Counter(list)
od = OrderedDict(cnt.most_common())
for key, value in od.items():
    print(key, value)