Let us go back to the "Revolt on the Amistad" print we told about at the beginning of this story.
VOA: special.2009.09.02
In there, I want to make this distinction, this nuance: the evaluator is still going to be taking those expressions and using its rules to get a value, but it's not going to print them back out.
在这里,我想要做这么一个,细微差别:运算器依然会,对表达式,进行求值,但是不会,显示结果值。
But if it is not, it's going to print out a message here saying, you screwed up, somewhat politely, and it's going to go back around. So it'll just cycle until I get something of the right type.
但是输入不是浮点数的话,我这里就会显示一个消息说,你搞砸了,该稍微有点礼貌吧?,然后我们继续执行循环,一直到得到正确类型的输入。
It's using its set of rules to deduce the value and print them back out.
计算器用自己的规则,去计算出结果来并返回。
I have a sequence of commands; I've got an assignment statement, I've got another assignment statement, I've got a print statement, I've got an input statement, which we'll come back to in a second.
这是一系列的命令;,我有了一个赋值声明,然后是另外一个赋值声明,还有一个print声明,然后是一个input声明,我们稍后会讲讲这个生命。
That's the Python saying, that is a command, that is a specific command to get the value of the expression and print it back out.
这代表着Python告诉我们这是一个命令,这是一个,得到表达式的值,并显示的特殊命令。
应用推荐