Discuss / Python / 综合吧

综合吧

Topic source

冲天魔王

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

print(reduce(getji,list(map(abs, [-1,-2,3,-4]))))

# -*- coding: utf-8 -*-
from functools import reduce
def prod(L):
    def mul(x,y):
        return x*y
    print ('3 * 5 * 7 * 9 =', reduce(mul,L))

  • 1

Reply