主页
Python
Python Set intersection() 方法
demo_ref_set_intersection
运行 ❯
×
更改方向
保存代码
更改主题
x = {"apple", "banana", "cherry"} y = {"google", "microsoft", "apple"} z = x.intersection(y) print(z)
{'apple'}