mylist = [0,1,1,2,2,3,3,3,3,4,5,6,7,7,8,8,9,10,10,11,22,33,22]

from collections import Counter

c = Counter()

for i in mylist:

    c[i] = c[i] +1

print(c)

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-23
  • 2022-01-02
猜你喜欢
  • 2021-11-14
  • 2022-01-22
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-21
  • 2022-01-05
相关资源
相似解决方案