IndentationError: unindent does not match any outer indentation level

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

    It could be because the function above it is not indented the same way. i.e.

    class a:
        def blah:
          print("Hello world")
        def blah1:
          print("Hello world")
    

提交回复
热议问题