python 报错IndentationError: expected an indented block 解决方法 发布于2019年8月13日 作者:wangxiao 今天敲了一堆代码 运行的时候各种问题,大部分都是与python的缩进有关。 IndentationError: expected an indented block 这个直译就是缺少缩进块 把缩进的空格敲上去就解决了。 另外python千万不要用tab。