IndentationError:expected an indented block

时间:2026-02-14 14:41:55

1、如图,当我们在if判断语句后执行print语句时,报错IndentationError:expected an indented block

IndentationError:expected an indented block

IndentationError:expected an indented block

2、此时只需要在print前面加tab键就可以了,即:后面需要缩进。

IndentationError:expected an indented block

IndentationError:expected an indented block

© 2026 五度知识库
信息来自网络 所有数据仅供参考
有疑问请联系站长 site.kefu@gmail.com