Floppy β Studio
Floppy β Studio

Python修复expected an indented block

今天照抄了一段代码,是这样子的:

运行的时候出大问题:expected an indented block

解决方法:在If语句后面写点东西啊,你if后头啥都没有还写啥啊

就像这样,if语句后面整点东西

https://floppyimg.ga/i/2021/01/05/ajith4.png

如果不是这个问题的话就是你tab或者是空格写错了,Python要是多写少写一个空格,就能要了Python的命

没有标签
首页      开发      Python      Python修复expected an indented block

发表回复

textsms
account_circle
email


Floppy β Studio

Python修复expected an indented block
今天照抄了一段代码,是这样子的: [crayon-65747c38d8e33968490330/] 运行的时候出大问题:expected an indented block 解决方法:在If语句后面写点东西啊,你if后头啥都没有还写啥…
扫描二维码继续阅读
2021-01-05