📜  删除重复的python代码示例

📅  最后修改于: 2022-03-11 14:45:55.775000             🧑  作者: Mango

代码示例6
a = [1,2,3,2,1,5,6,5,5,5]

import collections
print([item for item, count in collections.Counter(a).items() if count > 1])

## [1, 2, 5]