Requestdata5错误

5错误

1有时Python解释器将返回一个IndentationError

IndentationError当我们的代码中的缩进不一致时

2 TypeError类型出错

a+"42"

3ValueError类型出错

float("adada")

3 IndexError是我们尝试访问不在列表索引中的元素时返回的常见错误

 

4 AttributeError出错,我们尝试调用不包含它的对象的方法或属性时,会发生这种情况

 

5NameErrorname'Treu'is not defined

未定义的错误

posted @ 2018-01-06 11:08  克维拉  阅读(476)  评论(0编辑  收藏  举报