📜  collections.Counter(string).most_common - Python 代码示例

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

代码示例7
# Counter works with non-numbers too
special_counter = Counter(name='Pankaj', age=20)
print(special_counter)  # Counter({'name': 'Pankaj', 'age': 20})