Discuss / Python / 作业代码--list求积

作业代码--list求积

Topic source

sofa_th

#1 Created at ... [Delete] [Delete and Lock User]

def prod(x,y):

return x*y

print(reduce(prod,[1,2,3,4,5]))


  • 1

Reply