IndentationError: unindent does not match any outer indentation level

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

    For what its worth, my docstring was indented too much and this also throws the same error

    class junk: 
         """docstring is indented too much""" 
        def fun(): return   
    

    IndentationError: unindent does not match any outer indentation level

提交回复
热议问题