1,Python中报错:"IndentationError: unexpected indent"的原因分析和解决方法
:格式不正确
2,Python中报错:non-ascII '\xef' in ....
中英文符号
3,Python中报错:syntaxerror:invalid syntax
语法错误
4,Python中报错:TypeError: cannot concatenate 'str' and 'int' objects)
字符串和整型输出格式错位
5,Python中报错:python 报错 inconsistent use of tabs and spaces indentation
制表符与空格同时存在导致的,删除其中一种即可
6,Python中报错:name'xxx'is not defined
参数没有定义,去定义参数
7,Python中报错:typeError:object()takes no parameters
语法错误:如 def _init_() 改为 def __init__()