Python函数式练习
摘要:
def calc_prod(lst): def prod(): def mul_(a,b): return a*b return reduce(mul_,lst) return prodf = calc_prod([1, 2, 3,... 阅读全文
posted @ 2016-06-03 11:15 胖胖的乓乓 阅读(99) 评论(0) 推荐(0) 编辑
posted @ 2016-06-03 11:15 胖胖的乓乓 阅读(99) 评论(0) 推荐(0) 编辑