IndentationError expected an indented block

后端 未结 5 1914
借酒劲吻你
借酒劲吻你 2020-12-05 18:30

Here is the code:

def myfirst_yoursecond(p,q):

a = p.find(" ")
b = q.find(" ")
str_p = p[0:a]
str_q = p[b+1:]

if str_p == str_q:
    res         


        
5条回答
  •  余生分开走
    2020-12-05 19:15

    I got the same error, This is what i did to solve the issue.

    Before Indentation:

    Indentation Error: expected an indented block.

    After Indentation:

    Working fine. After TAB space.

提交回复
热议问题