list(map(bark, ['hello', 'hi', 'hey']))
Traceback (most recent call last):
File "<pyshell#30>", line 1, in <module>
list(map(bark, ['hello', 'hi', 'hey']))
TypeError: 'map' object is not callable
如图所示,map函数无法运行,出现异常
list(map(bark, ['hello', 'hi', 'hey']))
Traceback (most recent call last):
File "<pyshell#30>", line 1, in <module>
list(map(bark, ['hello', 'hi', 'hey']))
TypeError: 'map' object is not callable
如图所示,map函数无法运行,出现异常