python学习

2016-11-24  本文已影响8人  不规则先生

1 求集合乘积

def prod(x, y):

return x * y

print reduce(prod, [2, 4, 5, 7, 12])

上一篇 下一篇

猜你喜欢

热点阅读