编辑器
a = frozenset({1, 2, 3}) b = frozenset({3, 4, 5}) print(a.symmetric_difference(b)) print(a ^ b)
frozenset({1,2,4,5})
frozenset({1,2,4,5})