为什么print s 是dict的括号
>>> s=set(['Adam','Lisa','Paul'])
>>> L=['Adam','Lisa','Paul','Bart']
>>> for name in L:
... if name in s:
... s.remove(name)
... else:
... s.add(name)
...
>>> print(s)
{'Bart'}
>>> s=set(['Adam','Lisa','Paul'])
>>> L=['Adam','Lisa','Paul','Bart']
>>> for name in L:
... if name in s:
... s.remove(name)
... else:
... s.add(name)
...
>>> print(s)
{'Bart'}
2020-05-06
举报