Python 内建了 map() 和 reduce() 函数。 ... 举例说明,比如我们有一个函数f(x)=x 2 ,要把这个函数作用在一个list [1, 2, 3, 4, 5, 6, 7, 8, 9] 上,就可以用 map() ...
確定! 回上一頁