📜  python删除两个集合的交集 - Python代码示例

📅  最后修改于: 2022-03-11 14:46:38.701000             🧑  作者: Mango

代码示例2
sn1 = {1,2,3,4,5}
sn2 = {4,5,6,7,8}
print(sn1)
print(sn2)
sn1.difference_update(sn2)
print("sn1 ",sn1)
print("sn2",sn2)