Discuss / Python / 第二题

第二题

Topic source
在此插入代码

def multi(x,y): return x*y

def prod(L): return reduce(multi,L)

print('3 5 7 9 =', prod([3, 5, 7, 9])) 3 5 7 9 = 945


  • 1

Reply