推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
ljcarsenal
V2EX  ›  Python

有没有遇到过 sublime text 缩进的问题?

  •  
  •   ljcarsenal · Dec 13, 2014 · 3325 views
    This topic created in 4197 days ago, the information mentioned may be changed or developed.
    就是在sublime下看是正常的,但是运行就提示 unindent does not match any outer indentation level。和 idle打开 看到的不一样
    3 replies    2014-12-13 21:12:09 +08:00
    ZzFoo
        1
    ZzFoo  
       Dec 13, 2014
    把代码选中,缩进不是点点“····”而是横杠“——”的那一行就是出错的地方,改成空格就行了

    以后你可以设置View->Indentation->Indent Using Spaces,这样应该不会再出错了
    imn1
        2
    imn1  
       Dec 13, 2014
    如果装了lint一般都会报的吧?
    ljcarsenal
        3
    ljcarsenal  
    OP
       Dec 13, 2014
    @ZzFoo 我在pycharm里打开看了一下,提示说是 空格和tab混用了。。。。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4928 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 700ms · UTC 09:39 · PVG 17:39 · LAX 02:39 · JFK 05:39
    ♥ Do have faith in what you're doing.