数据结构与算法之线性表A和B并集Python抽象代码写法
#数据结构与算法之线性表A和B并集Python抽象代码写法如下:
#线性表A和B并列的python写法
def xxb(la,lb):
thislist = []
# lalen = la.count()
# lblen = lb.count()
laa = []
for b in lb:
if b in la:
break
else:
la.append(b)
print(la)
laa = [1,3,5,6,7,8,10]
lbb = [2,3,5,6,8,7,9]
xxb(laa,lbb)