摘要: 1 from collections import Counter 2 3 a = [1, 2, 3, 4, 3, 2, "奔奔", "benben", "奔奔"] 4 b = dict(Counter(a)) 5 # 只展示重复元素 6 print ([key for key,value in b 阅读全文
posted @ 2020-04-20 17:11 奔奔-武 阅读(8305) 评论(0) 推荐(1) 编辑