IndentationError: unindent does not match any outer indentation level

后端 未结 30 2066
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:24

    This is because there is a mix-up of both tabs and spaces. You can either remove all the spaces and replace them with tabs.

    Or, Try writing this:

    #!/usr/bin/python -tt
    

    at the beginning of the code. This line resolves any differences between tabs and spaces.

提交回复
热议问题