📜  在 python 代码示例中加入两个集合

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

代码示例1
set1 = {1, 4, 5, 6}
set2 = {1, 2, 3}

set3 = set1.union(set2)
print(set3)