Otherwise the test is always going to be true, we're going to go off here, but this would loop forever if I did that.
否则测试结果就会一直为真,我们需要离开这个测试,否则就会一直执行循环。
All right. Second question: or maybe a better way of saying this, and the general format you're likely to see here is, a test involving a variable name, which must be initialized outside of the loop, and which interior to the loop gets changed, so that the test is going to change.
好,第二个问题:,换种更好的方式来说吧,你们通常喜欢的,方式是,这个测试涉及到一个变量名字,变量在循环外已经被初始化,然后循环内部会改变这个变量的值,因此测试结果会改变。
应用推荐