📜  python 列出 union - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:14.995000             🧑  作者: Mango

代码示例1
# Python program to illustrate union
# Maintained repetition 
def Union(lst1, lst2):
    final_list = lst1 + lst2
    return final_list
  
# Driver Code
lst1 = [23, 15, 2, 14, 14, 16, 20 ,52]
lst2 = [2, 48, 15, 12, 26, 32, 47, 54]
print(Union(lst1, lst2))