notepad解决python中的缩进问题

Python中使用IDLE编辑器运行程序报错expected an indented block的一种解决方案。

在我们使用Python的时候,有时候虽然默认都是输入的半角,可是在IDLE中运行在某些情况之下还是会报错:expected an indented block。因此我们需要将文件中的空格亦或TAB问题可视化,这里我们可以采用NotePad++编辑器打开我们所写的脚本。从而达到修改的目的
notepad解决python中的缩进问题
notepad解决python中的缩进问题