Python中的map、reduce和filter浅析
1、先看看什么是 iterable 对象 以内置的max函数为例子,查看其doc:复制代码 代码如下:>>> print max.__doc__max(iterable[, key=func]) -> valuemax(a, b, c, ...[, key=func]) -> value With a single iterable argument, return its largest item.With two or more arguments, return the largest argument.在max函数的第一种形式中,其第一个参数是一个 iterable 对象,既然这样,那么哪
下载地址
用户评论