IndentationError:expected an indented block

 时间:2026-04-21 16:11:43

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循环
  • 热门搜索
    青春痘最好的治疗方法 炖豆腐怎么做好吃 子网掩码怎么设置 红烧狮子头的家常做法 怎么化妆好看视频 量血压的正确方法 家常炒面 蛏子怎么做好吃 怎么给文件夹加密码 小说大全