IndentationError:expected an indented block

2024-10-19 03:43:35

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

IndentationError:expected an indented block

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

IndentationError:expected an indented block
猜你喜欢