python过滤列表中重复数字,并统计共有多少不同数字 a=list(map(int, input().strip().split())) #列表 b=list(set(a)) #将列表转为集合过滤掉重复数据,再转为列表 print(int(len(b))) #打印过滤掉重复的后的个数