In contrast, the code in Listing 4 puts a note at the end of the loop.
相反,清单4中的代码会在循环结束处输出一条说明。
Add this code to the end of the iterator loop
将下列代码添加到迭代器循环的底部
When loops hit the end of the loop or if it issues a continue, then that is the last thing it will do in that block of code.
当循环到达循环的末尾,或者它执行continue时,那是它在代码块中要做的最后一件事情。
At the end of the day, you can implement the exact same program using a while loop that you can using a for loop, it's just your code is going to look slightly different.
最终,你可以执行这个程序,再使用for循环的地方使用while循环,这只是使你的代码看起来稍微有点不同。
At the end of the day, you can implement the exact same program using a while loop that you can using a for loop, it's just your code is going to look slightly different.
最终,你可以执行这个程序,再使用for循环的地方使用while循环,这只是使你的代码看起来稍微有点不同。
应用推荐