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