TypeError: ‘NoneType‘ object is not subscriptable TypeError: ‘NoneType’ object is not subscriptable错误的原因是:操作了None的变量,调用了None.方法,但空变量是没有方法的,所以报错;建议检查加个判断,当变量为空时,做另外的操作 常犯错误 2024-05-02 162 点赞 2 评论 245 浏览