一、错误:语法错误;逻辑错误
1.语法错误
eg1
SyntaxError: invalid syntax (语法错误,无效语法)
def t:
例外 错误但不报错
兼容PY2
eg2
IndentationError:expected an indented block(缩进错误,需要缩进块)
if 10 > 9:
print("wert")
2.逻辑错误
eg
Traceback(most recent call last) 回溯(最近一次呼叫的最后一次)
ValueError: invalid literal for int() with base 10:“asd” 值误差:以10为基的int()文本无效</