python 2 的 map 返回 list
python 3 的 map 返回 “(可迭代)map 类”
Python 3.2.3 (default, Feb 20 2013, 17:02:41)
[GCC 4.7.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> a = map(int, input().split())
23 -4 9 0 -31 39 4
>>> b = list(a)
>>> b
[23, -4, 9, 0, -31, 39, 4]
>>> a
<map object at 0xb728974c>
>>> list(a)
[]
>>> a = map(int, input().split())
3 4 5 0 -2
>>> list(a)
[3, 4, 5, 0, -2]
>>> list(a)
[]
>>>