立即学习:https://edu.csdn.net/course/play/26755/340119?utm_source=blogtoedu
add() 集合添加(可以混合类型)
remove() 删除元素
if x.__contains__() 判断元素在不在集合
| 或 x.union(x2)集合的合并符
x1.difference(x2) 在x1中剔除x2中有的元素
x1 ^ x2 并操作
立即学习:https://edu.csdn.net/course/play/26755/340119?utm_source=blogtoedu
add() 集合添加(可以混合类型)
remove() 删除元素
if x.__contains__() 判断元素在不在集合
| 或 x.union(x2)集合的合并符
x1.difference(x2) 在x1中剔除x2中有的元素
x1 ^ x2 并操作