alist=list(map(int,input().split()))
blist=list(map(int,input().split()))
c = alist+blist
s = set(c)
c = list(s)
c = sorted(c)
【Python学习】合并两个列表并去重
最新推荐文章于 2024-03-16 12:47:58 发布
alist=list(map(int,input().split()))
blist=list(map(int,input().split()))
c = alist+blist
s = set(c)
c = list(s)
c = sorted(c)