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.
本文解释了在Python编程中遇到NoneType错误的原因。通常这意味着在预期得到某个类实例的地方实际上得到了None值,这可能是由于之前的赋值或函数调用未按预期执行导致的。
None. That usually means that an assignment or function call up above failed or returned an unexpected result.

被折叠的 条评论
为什么被折叠?