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>
相關文章
相關標籤/搜索