SyntaxError: 语法错误 SyntaxError: invalid syntax
IndexError: 索引错误 IndexError: string index out of range
TypeError: 对字符串其中的值进行修改 TypeError: ‘str’ object does not support item assignment
TypeError: 不能作为函数使用的对象,加括号当函数来使用了 TypeError: ‘str’ object is not callable
NameError: 尝试访问未定义的变量 NameError: name ‘a’ is not defined
TypeError: 除法用在了两种不支持的数据类型 TypeError: unsupported operand type(s) for /: ‘str’ and ‘int’
TypeError: 将两种不同数据类型相拼接 TypeError: can only concatenate tuple (not “list”) to tuple
TypeError: 函数只能处理整数参数 TypeError: ‘float’ object cannot be interpreted as an integer
KeyError: 访问字典不存在key值报错 KeyError: 4
TypeError: 可变数据对象,无法进行hash运算 TypeError: unhashable type: ‘list’
dictionary update dict((seq)): 这里的序列必须是只含有两个数据的,长度为2 ValueError: dictionary update sequence element #1 has length 4; 2 is required
at least X arguments: 函数调用,参数没传够指定数 TypeError: pop expected at least 1 arguments, got 0
empty set: 对空数据集进行pop删除 KeyError: ‘pop from an empty set’
|