expected an indented block 解决方案: 在编译时会出现这样的错IndentationError:expected an indented block说明此处需要缩进,只要在出现错误的那一行,按空格或Tab(但不能混用)键缩进就行