Why do I get AttributeError: 'NoneType' object has no attribute 'something'?

前端 未结 10 2002
长情又很酷
长情又很酷 2020-11-21 13:36

I keep getting an error that says

AttributeError: \'NoneType\' object has no attribute \'something\'
10条回答
  •  囚心锁ツ
    2020-11-21 13:53

    NoneType means that instead of an instance of whatever Class or Object you think you're working with, you've actually got None. That usually means that an assignment or function call up above failed or returned an unexpected result.

提交回复
热议问题