map(function, iterable, ...)...If function isNone, the identity function is assumed; if there are multiple arguments, map() returns...将可迭代的iterable参数中的每一个元素作为function的参数执行,将结果作为一个列表返回。
>>> def foo(a):
... ....
>>> a
[1, 2, 3]
>>> map(foo,a)
[1, 4, 27]
>>>
If additional iterable arguments are passed, function... 5), (3, 6)]
>>> c
[7, 8]
>>> map(None,a,c)
[(1, 7), (2, 8), (3, None)]
>>>