def product(x, y=1, list): num = x y for n in list: num *= n return num
def product(x): L=len(x) K=1 while L>0: K=Kx[L-1] L=L-1 return K
刚刚复制错了。。。。。
Sign in to make a reply
白霓裳酱
def product(x, y=1, list): num = x y for n in list: num *= n return num