python错误总结

TypeError: ‘ <‘ not supported between instance of ‘str’ and ‘int ’ 

不支持在字符串和数字之间使用<


ValueError:substring not found

值错误  子串没找到

syntaxError: 'return' outside function 

语法错误  return 不在方法内

IndentationError :unindent does not match any outerindentation level

缩进错误不匹配任何缩进等级

AttributeError 属性错误

TypeError : Not all arguments converted during string  formatting

不是在字符串格式化过程中转换的所有参数

TypeError:pop expected at least 1 arguments, got 0

类型错误  pop方法期望得到至少一个参数  但是现在参数为0


 TypeError: must be str, not int

类型错误:必须是一个字符串  不能是数字


AttributeError: 'tuple' object has no attribute 'remove'

属性错误元组对象没有属性remove


KeyError:'fond'

键错误


TypeError:pop expected at least 1 arguments, got 0

类型错误  pop方法期望得到至少一个参数  但是现在参数为0


NameError:name 'false' is not defined

异常 'false'没有被定义


SyntaxError:Non-UTF-8 code starting with '\xe7' in file

语法错误:非utf -8代码,以“\xe7”开头










  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值