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.
但是输入不是浮点数的话,我这里就会显示一个消息说,你搞砸了,该稍微有点礼貌吧?,然后我们继续执行循环,一直到得到正确类型的输入。
So at this point in the story, we're not gonna forge ahead to here or to here, or the last two lines.
那么这时,我们并不能继续执行,这行或这行,或者说后两行的指令。
We execute that instruction, we move to the next one.
我们执行那个指令,我们继续下一轮。
- So double bar means if this condition or this one -- and maybe even both -- are true, go down this road and execute that code.
所以复纵线意思是,如果这两个条件之一-,或者两个都--是成立的,那就继续,执行后面的代码。
Just swap these two values for me and let me move on is the reasoning.
只要帮我把这两个值交换,让我继续往下执行。
Go ahead and implement with the person next to you a program that takes as input from the user an integer called F and prints out the answer of the Celsius equivalent.
继续和你旁边的人执行程序,取来自用户的整数F作为输入,然后打印出与之等价的摄氏温度的答案。
And then I run a loop in which I read something in, I check to see if it's the right type, if it is, I change that variable to say it's now the correct type, which means the next time through the loop, I'm going to say I'm all set and I'm going to bounce out.
因为我还没输入,然后我运行一个循环,循环内部我输入一些东西,然后看看是不是正确的类型,如果是的话我改变input,Ok为真,来证明输入数是正确的类型,这就意味着下一次运行这个循环的时候,就可以跳出循环继续执行了。
应用推荐