python 集合交补

setx = set(["apple", "mango"])  
sety = set(["mango", "orange"])  
#Symmetric difference  
setc = setx ^ sety  
print(setc)
原文地址:https://www.cnblogs.com/sea-stream/p/9950778.html