# -*- coding: utf-8 -*-
from functools import reduce
def fn(x, y):
return x * y
def prod(L):
if len(L)<1
python-reduce函数(list内元素相乘)
最新推荐文章于 2024-11-16 19:36:28 发布
# -*- coding: utf-8 -*-
from functools import reduce
def fn(x, y):
return x * y
def prod(L):
if len(L)<1