Python学习笔记:AttributeError: 'NoneType' object has no attribute 'text' 解决

前言 最近在学习python,犯了不少低级错误,总结一下python 目录 文章目录 前言 目录 问题 出处 方案 问题 AttributeError: ‘NoneType’ object has no attribute ‘text’web 出处 difficult = obj.find('difficult').text 方案 错误提示的是空元素,没有对应的属性。svg <object>
相关文章
相关标签/搜索