图7显示了一个无限循环。
出现此错误的原因是现在运行了一个无限循环。
在这里,如果断言失败,我们只需输入一个无限循环。
Here, if the assertion fails, we simply enter an infinite loop.
We're gonna have a so called a loop, an infinite loop and you actually experience this in the real world.
我们将会做一个循环,一个无限循环,你会在这个,真实世界里体验它。
If you're not updating some variable by incrementing it or decrementing it -- if you're not changing anything, presumably the conditions are never going to evaluate to false or the opposite, so you're just going to have an infinite loop, which might be your goal, but odds are it's not.
如果你不通过增加或减少它来改变一些变量,-如果你不改变什么,大概那个条件永远不会变成错误的,或相反的,所以你将得到一个无限循环,那可能是你的目标,但可能也不是。
And remind you that inside of here, I'd better be changing the variable. All right, if that variable that's counting is not changing I'm going to be stuck in an infinite loop, so I ought to that, right, expect somewhere in there, a change of that variable. All right?
我最好改变了计数器的变量值,好,如果计数的变量没有变化的话,我就会被卡在一个无限循环里面,因此我应该【不可闻的声音】,对,在这里的某个地方,改变下计数器的变量,对不对?我要做的最后一件事情就是?
应用推荐