python中出现IndentationError:unindent does not match any outer indentation level是什么问题?

来源:学生作业帮助网 编辑:作业帮 时间:2024/10/05 19:55:17
python中出现IndentationError:unindent does not match any outer indentation level是什么问题?
xoO@JCdߵ>PhZ0-1#@0q`T27kGo[Iwfq6=7j}!vR>{܉|ˏNN1<3`\/dPm7y+ar挙7O\hv6e'Ү*$׋NrҦgj&mA,l៑:GèBEg`YoxYVi`F[PA̍|]ťR9Lޓn POs-fsR-$Zk4zO^z7 bZՎKU9=ϐvZ5IkJ&X:Rf4LD xS%]4CS-4e^t?H!R,SʀkHD)b/-Yz)|,!

python中出现IndentationError:unindent does not match any outer indentation level是什么问题?
python中出现IndentationError:unindent does not match any outer indentation level是什么问题?

python中出现IndentationError:unindent does not match any outer indentation level是什么问题?
Read-Eval-Print-Loop问题……就是说,实时解释器中,每输入完一个程序段,就必须空一行,让前面的...变成>>>,以输入下一段程序.
注意sayhello()上面的空行.


如果你把代码写在一个文件里,然后运行,就不一定要写这个空行啦(虽然为了美观,强烈推荐保留空行)