TypeError: 'NoneType' object is not iterable
1. 将None赋给多个值时,会出现提示:TypeError: 'NoneType' object is not iterable
2. 函数返回值一定要考虑到条件分支的覆盖
3. 在没有return语句时,python默认会返回None(return返回数据为空)
时间:2020-01-29 10:33:38
TypeError: 'NoneType' object is not iterable
1. 将None赋给多个值时,会出现提示:TypeError: 'NoneType' object is not iterable
2. 函数返回值一定要考虑到条件分支的覆盖
3. 在没有return语句时,python默认会返回None(return返回数据为空)