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