📅  最后修改于: 2022-03-11 14:57:18.184000             🧑  作者: Mango
counter = Counter({'Dog': 2, 'Cat': -1, 'Horse': 0})
# elements()
elements = counter.elements() # doesn't return elements with count 0 or less
for value in elements:
print(value)