If I come into this code, I'm going to check this branch first, if it's not true, ah, there's a return at the end of that branch. If it is true, I do that, and then I've got a second test. If it's true, return I return, otherwise a return.
但是如果我们看看这里,如果我看这段程序,我会先检查这一部分,如果它是假的,啊,这部分分支结尾有一个。
And then it has a strange thing called ELIF, which is simply short for else/if in a second test.
然后代码做了一个奇怪的,叫做ELIF的事情,也就是else/if的简写,这是第二个测试。
I have the freedom to pass that person because I like the trend. Suppose I have somebody else who came here with two years of chemistry in high school, got a 95 on the first test, 70 on the second test, failed the third test, failed the final, has an aggregate score of 48.
我能够选择让那人通过,因为我喜欢他的进步,假设另一个同学,学了2年的化学在高中,第一次测试得到95分,第二次70分,第三次没通过,期末考也没通过。
So first of all, I've got to be careful about the end test. But the second thing is, OK, if it stops whenever this is less than two, am I convinced that this will always halt?
小心最后一次比较,其次,如果少于两个元素程序停止了,我们能确信这总是应该终止的么?,答案是肯定的,因为我在做什么?
应用推荐