前言
目录
问题
AttributeError: ‘NoneType’ object has no attribute ‘text’
出处
difficult = obj.find('difficult').text
方案
错误提示的是空元素,没有对应的属性。
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/203836.html原文链接:https://javaforall.net
Python学习笔记:‘’AttributeError: NoneType object has no attribute‘’前言最近在学习 python 犯了很多低级错误 总结一下 问题 AttributeErr NoneType objecthasnoa text 出处 difficult obj find difficult text 方案错误提示的是空元素 没有对应的属性 lt object gt lt n
AttributeError: ‘NoneType’ object has no attribute ‘text’
difficult = obj.find('difficult').text
错误提示的是空元素,没有对应的属性。
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/203836.html原文链接:https://javaforall.net