Python 報錯:AttributeError:'NoneType' object has no attribute 'decode' 解決方式

        用Python 讀取web api 數據,並寫到本地文件時候,出現這個錯誤:python AttributeError:'NoneType' object has no attribute 'decode'        解析:'NoneType' object 即空值,null 對象,這個對象是沒有屬性的。因此,後面調用這個屬性的時候,就會報錯。web   解決方法:用if -
相關文章
相關標籤/搜索