Python AttributeError: 'NoneType' 对象没有属性 'endswith'
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17772908/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
AttributeError: 'NoneType' object has no attribute 'endswith'
提问by mr.G
I am currently working on a Python script that updates a web page. But running the main script generates this error:
我目前正在开发一个更新网页的 Python 脚本。但是运行主脚本会产生这个错误:
<res status='-1'><error message="'NoneType' object has no attribute 'endswith'"><
