运行代码时提示“SyntaxError: expected an indented block”,
说明缩进有问题,请检查缩进后,调整正确即可。
Python代码对缩进的要求非常严格,相同层次的代码必须具有同样的缩进量。
更多推荐
Python基础-常见问题:运行代码时提示“SyntaxError: expected an indented block”,怎么解决呢?
运行代码时提示“SyntaxError: expected an indented block”,
说明缩进有问题,请检查缩进后,调整正确即可。
Python代码对缩进的要求非常严格,相同层次的代码必须具有同样的缩进量。
更多推荐
Python基础-常见问题:运行代码时提示“SyntaxError: expected an indented block”,怎么解决呢?
发布评论