IndentationError:expected an indented block
python编写时报IndentationError:expected an indented block错误,这时候该怎么办呢?下面与大家分享解决方法
方法
步骤1
编写Python代码时会遇到expected an indented block错误
步骤2
原因在于“:”后面的语句需要进行缩进
步骤3
将print语句缩进后即可正确输出a的值了
THE END
0
二维码
海报
IndentationError:expected an indented block
python编写时报IndentationError:expected an indented block错误,这时候该怎么办呢?下面与大家分享解决方法
方法
步骤1
编写Python代码时会遇到expected……