IndentationError: unindent does not match any outer indentation level

后端 未结 30 2092
Happy的楠姐
Happy的楠姐 2020-11-21 07:48

When I compile the Python code below, I get

IndentationError: unindent does not match any outer indentation level




        
30条回答
  •  遥遥无期
    2020-11-21 08:43

    If you use Python's IDLE editor you can do as it suggests in one of similar error messages:

    1) select all, e.g. Ctrl + A

    2) Go to Format -> Untabify Region

    3) Double check your indenting is still correct, save and rerun your program.

    I'm using Python 2.5.4

提交回复
热议问题