主页
Python
Python Set intersection() 方法
demo_ref_set_intersection2
运行 ❯
×
更改方向
保存代码
更改主题
x = {"a", "b", "c"} y = {"c", "d", "e"} z = {"f", "g", "c"} result = x.intersection(y, z) print(result)
{'c'}