Counter实现 from collections import Counter dict(sum(map(Counter, data), Counter())) 函数实现 def union_dict(data)