# 一元多项式的加法与乘法 一维数组实现,python def addDxs(a,b): i = 0 j = 0 c = [] # for i in range(len(a)-1): # for j in range(len(b)): while ib[j+1]: c.append(a[i]) c.append(a[i+1]) i = i + 2 else: c.append(b[j]) c.append(b[j+1]) j = j + 2 while i<=len(a)-1: c.append(a[i]) i=i+1 while j<=len(b)-1: c.append(b[j]) j=j+1 return c def muldxs(a,b):#指数递降 i = 0 j = 0 d = [] e = [] if len(a)>0 and len(b)>0: # for i in range (0,len(a)-1,2): # for j in range(0,len(b)-1,2): while i