📜  python代码示例中两组的差异

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

代码示例1
x = {1, 2, 3, 4, 5, 6}
y = {1, 2, 3, 4}

z = x.difference(y)
# 5, 6