Count total number of element which has duplicated in a list in Python

前端 未结 0 1632
面向向阳花
面向向阳花 2020-12-04 18:23

I would like to ask how to count the total number of elements which has duplicated in Python?

For example

Input: [1,2,2,3,4,4,5,6,7]

Output: 2 (because

相关标签:
回答
  • 消灭零回复
提交回复
热议问题