python之统计各个元素的个数

import random
a=[random .randint (0,101) for i in range(1000)]
from collections import Counter
count=Counter(a)
print(count)

猜你喜欢

转载自blog.csdn.net/helloworld0906/article/details/82970582