Discuss / Python / 作业2

作业2

Topic source

张康除

#1 Created at ... [Delete] [Delete and Lock User]
def prod(L):
    L=reduce(lambda x,y:x*y,L)
    return L
def prod(L):
    def xy(x,y):
        return x*y
    return reduce(xy,L)

  • 1

Reply