IndentationError: unindent does not match any outer indentation level

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

    On Atom

    go to

    Packages > Whitespace > Convert Spaces to Tabs
    

    Then check again your file indentation:

    python -m tabnanny yourFile.py
    

    or

    >python
    >>> help("yourFile.py")
    

提交回复
热议问题