IndentationError:expected an indented block

作者:哈哈小脸 | 创建时间: 2023-06-10
python编写时报IndentationError:expected an indented block错误,此错误的解决方法如下。...
IndentationError:expected an indented block

操作方法

如图,当我们在if判断语句后执行print语句时,报错IndentationError:expected an indented block

此时只需要在print前面加tab键就可以了,即:后面需要缩进。

点击展开全文

更多推荐