Python 函数作为返回值
摘要:
函数作为返回值高阶函数除了可以接收函数作为参数外,还可以把函数作为结果值返回。def lazy_sum(*args): def sum(): ax=0 for n in args: ax = ax + n return ax r... 阅读全文
posted @ 2016-01-04 16:59 小作一个 阅读(29181) 评论(0) 推荐(0)
posted @ 2016-01-04 16:59 小作一个 阅读(29181) 评论(0) 推荐(0)
posted @ 2016-01-04 10:44 小作一个 阅读(839) 评论(0) 推荐(0)