崇高文字2> IndentationError< [英] Sublime Text 2 >IndentationError<

查看:100
本文介绍了崇高文字2> IndentationError<的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对Sublime文字2有疑问. 当我以崇高的文字正确编写一些python脚本时,我总是会遇到这个问题 "IndentationError:意外缩进" 一段时间后,我发现问题是由崇高的文字引起的.我尝试了其他编辑器,但纠正了,但崇高的文字无法正常工作.

I have a problem with sublime text 2. When I write some python scripts correctly at sublime text I always face on with this problem "IndentationError: unexpected indent" after a while I found, the problem is causing by sublime text. I tried other editors and corrected but sublime text didnt work correctly.

主要问题是,崇高的文字会在我的行中添加额外的制表符,这会影响我的脚本工作.我找不到原因.希望有人帮助我. 非常感谢.

The main problem is, sublime text is adding extra tab to my line and that affects my script works. I couldnt find the reason. hope somebody help me. Thanks a lot.

推荐答案

转到Packages/User/Preferences.sublime-settings

Go to Packages/User/Preferences.sublime-settings

将其更改为此:

{
    "tab_size": 4,
    "translate_tabs_to_spaces": true
}

这篇关于崇高文字2> IndentationError<的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆