1.报错 SyntaxError: unexpected EOF while parsing
原因:复制整段出现问题或括号不匹配
2.TypeError: not all arguments converted during string formatting
原因:未转换成统一类型(str,int,float...)
3.IndentationError: expected an indented block
原因:缩进错误,同一逻辑语句,缩进要相同,加个空格就好,详见IndentationError: expected an indented block解决方案_迎风致万里的博客-CSDN博客