解决python问题:IndentationError :1. notepad++ 显示行号 2.tab自动转化为空格符
来源:互联网 发布:u盘重装mac,出现圈 编辑:程序博客网 时间:2024/05/22 09:42
解决IndentationError :
1. notepad++ 显示行号
视图(V) ⇒ 显示符号 ⇒ 显示空格与制表符
这样,就可以将空格键显示出来了,效果是四个橘黄色的点点,TAB键是右向的橘黄色箭头。
就很方便的,很清楚的看到,哪些是空格,哪些是TAB了。
另外,可以根据需要,比如想要知道那些行,有回车换行,还是单个的回车,单个的换行等,可以设置将所有的字符都显示出来:
视图(V) ⇒ 显示符号 ⇒ 显示所有字符
2.tab自动转化为空格符
打开自动缩进,可以在 设置-》首选项-》其他 中进行设置
勾选了这个后,你换行时就会自动缩进了,下面还要设置将TAB更换成4个空格 设置-》首选项-》语言-》标签设置
notepad++6.9 设置截图:
3.notepad++快速运行设置
打开notepad++,找到菜单栏的run菜单。
子菜单选中run
弹出的小窗口中,输入cmd /k Python "$(FULL_CURRENT_PATH)" & PAUSE & EXIT ,点击保存
给新建脚本命令,懒蛇命名为run python,快捷键设置为ctrl+shift+P, 好记。
返回notepad++,run子菜单中选中run python,即可直接调试python。
参考文献:http://jingyan.baidu.com/article/d5a880eb8ce81813f047cc4b.html
http://blog.csdn.NET/seanchan/article/details/7357462
http://www.crifan.com/files/doc/docbook/rec_soft_npp/release/htmls/npp_func_show_special_char.html
- 解决python问题:IndentationError :1. notepad++ 显示行号 2.tab自动转化为空格符
- 解决python问题:IndentationError :1. notepad++ 显示行号 2.tab自动转化为空格符
- VIM显示行号、自动缩进 、为操作的一行添加下划线、设置鼠标、设置tab的缩进量
- vim设置tab为四个空格并显示行号
- Python IndentationError 问题
- 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问题:IndentationError:expected an indented block错误解决
- python问题:IndentationError:expected an indented block错误解决
- python问题:IndentationError:expected an indented block错误解决
- hadoop hive基本操作
- DHCP基础
- 三道算法题
- 原生JS经典射击游戏-小蜜蜂
- WWW服务器的安装与配置
- 解决python问题:IndentationError :1. notepad++ 显示行号 2.tab自动转化为空格符
- linux centos7设置图形界面切换文本界面
- python列表详细讲解
- fuse挂载hdfs文件系统
- git本地忽略文件
- AngularJS第一讲
- TensorsFlow学习笔记2----教程综述
- <4>:TCP自连接
- NYOJ 矩形嵌套