python学习 2016-11-24 本文已影响8人 不规则先生 1 求集合乘积 def prod(x, y): return x * y print reduce(prod, [2, 4, 5, 7, 12])