-
collections.CounterDEV/Python 2021. 7. 19. 10:42
https://docs.python.org/3/library/collections.html#collections.Counter
A Counter is a dict subclass for counting hashable objects. It is a collection where elements are stored as dictionary keys and their counts are stored as dictionary values. Counts are allowed to be any integer value including zero or negative counts. The Counter class is similar to bags or multisets in other languages.
이야 이런게 있었다니! 파이썬 뭐야 넘 멋져~