IndentationError:expected an indented block

 时间:2024-10-19 03:43:35

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

IndentationError:expected an indented blockIndentationError:expected an indented block

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

IndentationError:expected an indented blockIndentationError:expected an indented block
  • 怎么用Python输出hello world
  • Python 列表(List)中查找元素位置的方法和技巧
  • 如何使用python求解一元二次方程?
  • python中如何输出汉字
  • 水仙花数python代码for循环
  • 热门搜索
    阴霾的意思 灯红酒绿的意思 淘宝美工是做什么的 什么是鼠标手 既生瑜何生亮是什么意思 四舍五入是什么意思 积蓄的意思 什么是二次供水 乳酸菌饮料的作用 本垒打在爱情里面是什么意思