How to take only 3 duplicates from a list with 6 or more duplicates and put them in another list

后端 未结 0 1008
予麋鹿
予麋鹿 2020-12-12 16:22

I made some code that solve my problem, but it\'s to slow. Any others solutions?

for item in append_to_table2:
    counted = Counter(ls)
    if counted[item]          


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