python 集合并集

#Union  
setx = set(["green", "blue"])  
sety = set(["blue", "yellow"])  
seta = setx | sety  
print(seta)

猜你喜欢

转载自www.cnblogs.com/sea-stream/p/9950805.html