我是学习python的新手,我正在编写一个教程,每当我打开这一行时,我都会收到无效的语法错误。
In [4]: mystring = "hello"
In [5]: myfloat = 10.0
In [6]: myint = 20
In [7]: if mystring == "hello":
File "<stdin>", line 1
if mystring == "hello":
^
SyntaxError: unexpected EOF while parsing