大佬们为什么报错帮忙解释一下 谢谢
L = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
S = set([1, 3, 5, 7, 9, 11])
for a in L:
print(a)
for b in S:
print(b)
#if a == b:
# S.remove(a)
#else:
# S.add(a)
print(L)
L = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
S = set([1, 3, 5, 7, 9, 11])
for a in L:
print(a)
for b in S:
print(b)
#if a == b:
# S.remove(a)
#else:
# S.add(a)
print(L)
2022-05-24
举报