expected an indented block after function definition on line 1
时间: 2023-11-22 16:37:57 浏览: 36
expected an indented block after function definition on line 1是Python的语法错误。它表示在第1行的函数定义后期望一个缩进块。在Python中,缩进是用来标识代码块的开始和结束的。因此,如果在函数定义后没有缩进,Python解释器将无法识别函数体的内容。
相关推荐
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)