setx = set(["apple", "mango"]) sety = set(["mango", "orange"]) #Symmetric difference setc = setx ^ sety print(setc)
python 集合交补
猜你喜欢
转载自www.cnblogs.com/sea-stream/p/9950778.html
今日推荐
周排行