python中collections中的counter类_[Python]collections模块中的Counter类
classcollections.Counter([iterable-or-mapping])文档中对Counter类型的说明如下:A Counter is a dict subclassfor counting hashable objects. It is an unordered collection whereelements are stored as dictionary keys a...