📜  如何绘制计数器输出 - Python 代码示例

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

代码示例1
import collections
import matplotlib.pyplot as plt
l = ['a', 'b', 'b', 'b', 'c']
w = collections.Counter(l)
plt.bar(w.keys(), w.values())