美文网首页python
python遇到的错误

python遇到的错误

作者: 庵下桃花仙 | 来源:发表于2018-07-18 21:07 被阅读11次

1、expected an indented block

  1. 冒号后面是要写上一定的内容的(新手容易遗忘这一点);
  2. 缩进不严格,导致少了或者多了一个空格。

2、 EOL while scanning string literal

定义函数时,忘了加冒号。

3、name 'Game' is not defined

在写完类后,用的时候没有顶格写。

相关文章

网友评论

    本文标题:python遇到的错误

    本文链接:https://www.haomeiwen.com/subject/qamapftx.html