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