📜  python 集合到字典 - Python 代码示例

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

代码示例1
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)