当前位置:   article > 正文

AttributeError:‘NoneType‘ object has no attribute ‘decode‘ 解决方式_attributeerror: 'nonetype' object has no attribute

attributeerror: 'nonetype' object has no attribute 'decode

《Python编程从入门到实践》实战项目二17.2.3引发如下错误

AttributeError:'NoneType' object has no attribute 'decode'
  • 1

造成原因应该是web api信息缺失引发错误了,比如部分项目的描述信息,可考虑用if-else代码块解决

#探索有关仓库的信息
repo_dicts =response_dict['items']
names,plot_dicts = [],[]
f
  • 1
  • 2
  • 3
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/正经夜光杯/article/detail/766986
推荐阅读
相关标签
  

闽ICP备14008679号