【Python】异常:IndentationError:expected an indented block
来源:互联网 发布:ubuntu怎么设置中文 编辑:程序博客网 时间:2024/05/06 06:32
问题:IndentationError:expected an indented block(预期着有一个缩进块)
原因:1)报错行需要缩进而没有缩进;2)或者缩进没有对齐
解决方法:在报错行用Tab或空格进行缩进,但要注意统一个文件中只能使用一种缩进方式
0 0
- 【Python】异常:IndentationError:expected an indented block
- python:IndentationError:expected an indented block
- python IndentationError: expected an indented block
- Python问题-IndentationError: expected an indented block
- python错误:IndentationError:expected an indented block
- python:IndentationError:expected an indented block
- python IndentationError: expected an indented block
- Python 错误:IndentationError: expected an indented block
- Python错误:IndentationError: expected an indented block
- python:IndentationError:expected an indented block问题
- IndentationError:expected an indented block
- IndentationError: expected an indented block
- Python常见问题解决办法之:python indentationerror:expected an indented block
- python问题:IndentationError:expected an indented block错误解决
- python问题:IndentationError:expected an indented block错误解决
- python问题:IndentationError:expected an indented block错误解决
- python问题:IndentationError:expected an indented block错误解决
- python问题:IndentationError:expected an indented block错误解决
- 在网页上显示一个钟表。
- 第三周上机项目2三角形类2
- 模型融合
- 2015年第三周项目五:数组做数据成员(3)
- 2015-第三周-考了语文数学的学生
- 【Python】异常:IndentationError:expected an indented block
- Cloud Foundry安装部署指南(下)
- 第三周项目1-三角形类型1
- 第三周【项目1-三角形类1】
- 三角形2
- 2-3-2&3 三角形类2及多文件组织
- Python--filter
- 第三周项目3 程序的多文件组织
- 第三周OJ刷题渊子赛马