食品供应应当每6个月就循环一次,以保证其新鲜。
The food supplies should be rotated every 6 months to keep them fresh.
每循环一次,外部循环都使循环计数器变量递减一次。
The outer loop decrements a loop counter variable each time through the loop.
蜜蜂身体里有一个天生的的“闹钟”,它准确地每24小时循环一次。
It has a built-in alarm clock that goes off exactly every 24 hours.
Once each time. Right? I only do one swap potentially, it-- though not one potentially, each time at the end of the loop I do a swap.
每次循环做一次,对么?我其实,就可能做了一次交换,也许并不是可能,每次循环的结束我都得做一次交换。
OK, so what have I done? I just added a little bit more now. I'm now running through a pair of loops. Again notice the encapsulation, that nice abstraction going on, which is what I want. Once I get to this stage though by the way, there might be more than one solution.
我现在运行了一对循环,再一次注意这个封装,抽象得很好,这就是我想要的结果,我按这种方式走到这一步的时候,可能会有多组答案。
So first time through the loop, the answer is a. Second time it-sorry, as it enters the loop, at the time it enter exits a the answer is a.
当第一次完成循环的时候,答案是a,第二次,对不起,在第一次进入循环的时候,答案就是。
应用推荐