📅  最后修改于: 2022-03-11 14:46:00.948000             🧑  作者: Mango
import collections
import matplotlib.pyplot as plt
l = ['a', 'b', 'b', 'b', 'c']
w = collections.Counter(l)
plt.bar(w.keys(), w.values())