Python累积产品

示例

import operator
reduce(operator.mul, [10, 5, -3])
# 出:-150