python中出现的expected an indented block错误代码解析
来源:互联网 发布:mac 查杀进程 编辑:程序博客网 时间:2024/06/05 14:50
我使用的python编译环境是Anaconda,文本编译器为notepad++,当我在notepad++里面修改程序的时候,就会导致编译的时候出现expected an indented block,这个错误的出现大多数是因为缩近没有处理好的原因。于是我把notepad++和Anaconda的空格和缩近符全都显示出来,发现这两个软件,对于按下enter键进行的缩近空格的个数是不一致的,所以才会出现缩近的错误。调整方法如下所示:
打开spyder-> Tools ->preferences->Editor,你将看到下面的界面
选择indentation characters选择 tab,即缩近的时候按 tab缩近。因为notepad++是按tab缩近的,所以就不用修改了。
0 0
- python中出现的expected an indented block错误代码解析
- Python中expected an indented block
- python中IndentationError: expected an indented block错误的解决方法
- Python 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
- python:IndentationError:expected an indented block问题
- Python : expected an indented block错误
- python expected an indented block什么意思
- IndentationError:expected an indented block
- IndentationError: expected an indented block
- 提高第18课时,实践4,扑克牌
- 交换*号到第一位的partition算法和不改变数字位置的算法 scala版本
- android studio慢慢熟悉-好用的 设置 查找框
- 彻底分析block中的循环引用
- UVA LA3890 二分和半平面交
- python中出现的expected an indented block错误代码解析
- CSU1614:First Blood
- 剑指offer 替换空格 java实现
- Leecode记录——Valid Palindrome
- day14/ArrayListTest2.java
- C++命名空间的解释
- 关于SmartForm和ScriptForm的输出格式设置说明
- day14/ArrayListTest.java
- jsp的EL表达式中建立链接隐藏id,点击链接进入新页面,显示详细信息