主页
Python
Python - 连接集合
demo_set_union_pipe
运行 ❯
×
更改方向
保存代码
更改主题
set1 = {"a", "b", "c"} set2 = {1, 2, 3} set3 = set1 | set2 print(set3)