推荐学习书目
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
fang151liu
V2EX  ›  Python

请问 Python 这个报错是什么情况,应该怎样修改

  •  
  •   fang151liu · Jul 24, 2019 · 2710 views
    This topic created in 2491 days ago, the information mentioned may be changed or developed.

    if box[5] < 0: x1 -= x y1 += y x4 += x y4 -= y else: x2 += x y2 += y x3 -= x y3 -= y 报错内容:unexpeted indent 制表符缩进全改了,还是不行,唉

    10 replies    2019-07-24 16:46:58 +08:00
    CCyutaotao
        1
    CCyutaotao  
       Jul 24, 2019   ❤️ 1
    这个时候你最好就贴一张图了
    ly4572615
        2
    ly4572615  
       Jul 24, 2019
    提示缩进不正常
    JimmyTinsley
        3
    JimmyTinsley  
       Jul 24, 2019
    可以用 gist 或者 pastebin 贴出来, 或者至少截图给我们看看格式哪里有问题嘛
    aaronhua
        4
    aaronhua  
       Jul 24, 2019
    不用 idea 是挺折磨的。新手的话就再起一个文件,抄一遍就会发现问题了。
    gazhang
        5
    gazhang  
       Jul 24, 2019 via Android
    这个论坛对新手还是挺友好的🌚
    RRRoger
        6
    RRRoger  
       Jul 24, 2019
    缩进错误;一行一行调试;知道 ok 位置
    yzc27
        7
    yzc27  
       Jul 24, 2019
    某一行或者某几行缩进的问题
    arrow8899
        8
    arrow8899  
       Jul 24, 2019
    截个图吧,你这样发根本看不出
    im67
        9
    im67  
       Jul 24, 2019
    缩进错误 ,需要个游标卡尺(用 ide )……
    wozhizui
        10
    wozhizui  
       Jul 24, 2019
    ```
    if
    ```
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4959 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 75ms · UTC 09:35 · PVG 17:35 · LAX 02:35 · JFK 05:35
    ♥ Do have faith in what you're doing.