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

  • 怎么用Python输出hello world
  • Python 列表(List)中查找元素位置的方法和技巧
  • 如何使用python求解一元二次方程?
  • python中如何输出汉字
  • 水仙花数python代码for循环
  • 热门搜索
    放飞梦想手抄报内容 中秋手抄报内容 清明节手抄报简单画 尊师重教手抄报 525心理健康手抄报 成长足迹手抄报 手抄报装饰 我爱中华手抄报 五水共治手抄报内容 清明节手抄报大全漂亮