下面代码为什么会出问题
# Enter a code
s1 = set([1, 2, 3, 4, 5])
s2 = set([1, 2, 3, 4, 5, 6, 7, 8, 9])
if s1.isdisjoint(s2)<>True:
for num2 in s2:
for num1 in s1:
if num1<>num2:
s1.remove(num1)
s2.remove(num2)
else:
print(num1)
else:
print('两集合无重合')