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