- 帖子
- 12
- 精华
- 0
- 积分
- 42
- 阅读权限
- 10
- 注册时间
- 2017-8-17
- 最后登录
- 2017-11-1
|
环境,python 3.4.4,windows 7 64bit
代码:
lst_1 = (1,2,3,4,5,6)
lst_2 = (4,5,6,7,8,9)
lst_4 = map(None,lst_1,lst_2) # python None 存在问题
print (list(lst_4))
按照课程 https://mp.weixin.qq.com/s?__biz ... 2abd9a826f298950a8f 的案例预期输出应该是两个数组,但是报如下的错误
Traceback (most recent call last):
File "D:/pyhome/code/newcomer/L72_map.py", line 44, in <module>
print (list(lst_4))
TypeError: 'NoneType' object is not callable
查了下,针对该报错的分支比较多,暂时没有排查是思路,大家有没有遇到过类似的问题?
|
|