为什么报错呢这个
s1 = set([1, 2, 3, 4, 5])
s2 = set([1, 2, 3, 4, 5, 6, 7, 8, 9])
s3 = set([])
x = s1.isdisjoint(s2)
a = False
if x == a:
s3=s2-s1
print(s3)
else:
print('s1与s2不重合')
s1 = set([1, 2, 3, 4, 5])
s2 = set([1, 2, 3, 4, 5, 6, 7, 8, 9])
s3 = set([])
x = s1.isdisjoint(s2)
a = False
if x == a:
s3=s2-s1
print(s3)
else:
print('s1与s2不重合')
2022-09-03
举报