这个代码哪里有错误,为什么执行不了!请大神帮忙解答
l = [1,2,3,4,5,6,7,8,9,10] s = set([1,3,5,7,9,11]) for i in s: for x in l: if i = = x: s.remove(i) else: s.add(x) print(s)
l = [1,2,3,4,5,6,7,8,9,10] s = set([1,3,5,7,9,11]) for i in s: for x in l: if i = = x: s.remove(i) else: s.add(x) print(s)
2021-05-31
举报