python编写时报IndentationError:expected an indented block错误,这时候该怎么办呢?下面与大家分享解决方法
方法
编写Pyt来自hon代码时会遇到expected an indented block错误
原因在于“:”后面的语句需要进行缩进
将print语句缩进后即可正确输出a的值了
python编写时报IndentationError:expected an indented block错误,这时候该怎么办呢?下面与大家分享解决方法
编写Pyt来自hon代码时会遇到expected an indented block错误
原因在于“:”后面的语句需要进行缩进
将print语句缩进后即可正确输出a的值了