假设我了解你想要什么,
>>> collections.Counter([x for sublist in a for x in sublist])Counter({'mrpycharm': 3, 'its': 2, 'friends': 1, 'is': 1, 'it': 1, 'hello': 1})要么,
>>> c = collections.Counter()>>> for sublist in a:... c.update(sublist)...>>> cCounter({'mrpycharm': 3, 'its': 2, 'friends': 1, 'is': 1, 'it': 1, 'hello': 1})

![2D列表中的Python计数元素频率[重复] 2D列表中的Python计数元素频率[重复]](http://www.mshxw.com/aiimages/31/377999.png)
