1.NameError: name ‘xxx’ is not defined
名称错误:名称“xxx”未定义

2.TypeError: unsupported operand type(s) for +: ‘int’ and ‘str’
类型错误:不支持+的操作数类型:’int’和’str’

3.TypeError: ‘str’ object is not callable
类型错误:“str”对象不可调用

4.IndexError: list index out of range
索引错误:列表索引超出范围

5.KeyError: ‘xxx’
键错误:’xxx’

6.ValueError: invalid literal for int() with base 10: ‘xxx’
值错误:基数10为“xxx”的int()字面值无效

7.ZeroDivisionError: division by zero
零除法错误:除数为零

8.AttributeError: ‘xxx’ object has no attribute ‘yyy’
属性错误:“xxx”对象没有属性“yyy”

9.FileNotFoundError: [Errno 2] No such file or directory: ‘xxx’
文件未找到错误:[错误2]没有这样的文件或目录:’xxx’

10.IndentationError: expected an indented block
缩进错误:期望有一个缩进块

11.SyntaxError: invalid syntax
语法错误:语法无效

12.TypeError: ‘list’ object cannot be interpreted as an integer
类型错误:“list”对象不能被解释为整数

13.TypeError: missing 1 required positional argument: ‘xxx’
类型错误:缺少1个必填位置参数:“xxx”

14.UnboundLocalError: local variable ‘xxx’ referenced before assignment
未绑定本地错误:在赋值之前引用了局部变量“xxx”

15.RecursionError: maximum recursion depth exceeded
递归错误:最大递归深度超过

16.ImportError: No module named ‘xxx’
导入错误:没有名为“xxx”的模块

17.TypeError: can only concatenate str (not “int”) to str
类型错误:只能将str(而不是int)连接到str