迭代python的Collections.counter

时间:2015-05-27 02:03:10

标签: python algorithm time-complexity

iteritems()通过python中Collections.Counter的键值元素的时间复杂度是什么:

Count = Counter()
for i in "string":
    Count[i]+=1
for key, value in Count().iteritems():
    print k, v

0 个答案:

没有答案