阅读背景:

'NoneType' object has no attribute '__getitem__'和argument of type 'NoneType' is not iterable 异常的解决办法

来源:互联网 
以为搞定了,结果程序还是抛出了如下图异常:TypeError: argument of type 'NoneType' is not iterable。后来仔细一看发现,如果record and ('geo' in record)是一对,即使用'in'之前要保证record不是'None',那么('coordinates' in record['geo']似乎缺少保证record['geo']不为'None'。以为搞定了,结果程序还是抛出了如下图异常:TypeError: argument of type '


你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: