union 语法 union(X, Y) 或 X|Y 参数 X 和 Y 是集合 详情 返回两个集合的并集。 例子 x=set([5,5,3,4]); y=set(8 9 9 4 6); x | y; # output set(8,9,6,4,3,5)