在这个例子中,通过将print("This line should be indented")行的缩进与print("This is inside the if statement")行保持一致,我们修正了缩进错误,从而避免了“statement expected, found py”错误。
return 返回值 1. 2. 3. 4. 调用函数时 , 使用 变量 可以接收函数返回值 ; 变量= 函数(参数列表) 1. 在函数中 , 如果遇到 return 关键字 , 则不会执行后续函数体中的代码 , 在编译时如果发现 函数体中 在 return 语句后有代码 , 会报错提示 ; Statement expected, found Py:DEDENT 1. 二、函数返...