Skip to content
On this page

union

返回多个列表的并集,去除重复元素。

python
from usepy import union

参数

  • *lists: 要合并的列表

例子

python
>>> union([1, 2, 3], [2, 3, 4], [3, 4, 5])
[1, 2, 3, 4, 5]

Released under the MIT License.