IndentationError:expected an indented block。 代码小二 2023-08-22 软件技巧 54 次浏览 python编写时报IndentationError:expected an indented block错误,这时候该怎么办呢?下面与大家分享解决方法 方法 编写Pyt来自hon代码时会遇到expected an indented block错误 原因在于“:”后面的语句需要进行缩进 将print语句缩进后即可正确输出a的值了 上一篇: PS教程:如何给字体加阴影效果。 下一篇: 教你电脑怎么大量群发短信。