解决 Python 报错 AttributeError: 'NoneType' object has no attribute 的排查指南排查与解决 Python 对空对象 None 调用属性或方法导致抛出 AttributeError 的完整方案。Python · Debugging · AttributeError2026.10.29