IndentationError: unindent does not match any outer indentation level
2016-04-12 17:28
435 查看
在sublime text 2 中写python代码,有时候会遇到这个错误:
此错误一般是由缩进不对导致的,但有时候明明自己的代码缩进没有问题,但就是一直有这个错误,这有可能是代码编辑器的缩进设置有问题导致,可以试试在sublime text中设置:
同时把Convert Indentation to Tabs 同级菜单里的
IndentationError:
unindent does not match any outer indentation level
此错误一般是由缩进不对导致的,但有时候明明自己的代码缩进没有问题,但就是一直有这个错误,这有可能是代码编辑器的缩进设置有问题导致,可以试试在sublime text中设置:View-->
Indentation-->
Convert Indentation to Tabs
同时把Convert Indentation to Tabs 同级菜单里的
Indent Using Spaces前面的勾取消掉,一般能解决这个问题。
相关文章推荐
- 堆和栈的区别
- spring事务管理几种方式(转)
- Spark Streaming 'numRecords must not be negative'问题解决
- hdu 1506(好题+DP或者RMQ)
- Linux下使用命令行配置IPMI
- HTML 5 Web Workers
- ORACLE高效SQL积累
- 解决as无法删除class.jar问题
- 一次Rootkit实施失败记(图解)
- ffmpeg encoder optimization
- Mysql 日志文件类型
- 点击空白 隐藏软键盘
- ubuntu上mount移动硬盘
- oracle_10g em登录提示:java.lang.Exception Exception in sending Request null
- 数据库中查询的各种连接(左连接,右连接,全连接,内连接,交叉连接,自连接)
- canvas在电脑手机屏上被自动放大显示不正常问题
- 如何制作自己的Visio图标
- BadgeView的使用介绍
- 计算机程序和C++语言简介
- 程序员的幸福