python报错提示语

python运行报错提示语

报错提示语 解释
SyntaxError: invalid syntax 无效的语法,语法错误
NameError: name 'xxxx' is not defined 没有定义变量
IndentationError: expected an indented block 代码缩进错误
KeyError: 'xxx' 在字典里面取一个不存在的值
IndexError: list index out of range 取值超出长度列表的长度
TypeError: argument of type 'int' is not iterable int类型参数不可迭代
TypeError:xxx takes no arguments

构造的某个函数失败

待更新...... 待更新......
发布了36 篇原创文章 · 获赞 24 · 访问量 1万+

猜你喜欢

转载自blog.csdn.net/admins_/article/details/103396129