1、统计list中重复的元素
alist = [4,3,5,3,4,0,6,3,3]blist = []
for i in alist: if alist.count(i) >1: if i not in blist: blist.append(i)print(blist)