Compare this with the equivalent 'for' loop.
与等价的'for '循环比较。
In some instances, the 'for' loop can be useful.
在某些场合下,'for '循环可能有用。
Now instinctively, prefer the for loop or the while loop?
现在凭感觉,你们喜欢for循环还是while循环?
But from that we developed a very useful construct, which is the "for" loop.
然而由此我们发明了一个非常有用的结构,这就是“for”循环。
The for loop now iterates through the copy, while you're modifying the original list.
现在for 循环将迭代该副本,而对原始 list进行修改。
It also supplies a simple loop for handling queries on the command line.
它还提供在命令行中处理查询的简单循环。
The city operates as an efficient loop - everything is recycled for something else.
这座城市就像一个“高效环”在运作——一切都可循环利用。
For each iteration, all of the steps in the loop are run.
对于每个迭代,将运行循环中的所有步骤。
For this reason, excessive function calls in a loop are generally a bad idea.
由于这个原因,在一个循环中使用太多函数调用不是个好主意。
Never add measurements for methods that are executed within a loop
绝对不要对循环内执行的方法进行测量
For example, implementing a replay function in this kind of game loop is easy.
比如,在这样的游戏循环下实现一个重播的函数并不难。
Is the loop header reserved for loop control?
循环的头部是否进行循环控制?
Is manually updating a for loop iterator bad practice?
手动更新循环迭代器不好的做法?
You can almost always substitute a loop for recursion.
几乎在任何情况下都可以用循环替代递归。
You might have expected an extra for loop.
您可能已经预料到一个额外的for循环了。
Listing 3. The for loop and a string.
清单3.for循环和string。
Here is an example that USES a FOR loop.
下面是一个使用FOR循环的示例。
Listing 4. The for loop and a list.
清单4.for循环和list。
Thus, the third for loop finds two additional vowels.
因此,第三个for循环可找到另外两个元音字母。
If the dates are correct, then a For loop is executed.
如果这两个日期正确,则执行一个For循环。
The end of that article introduced the Python for loop.
该文的结尾介绍了Python for循环。
The button is clicked three times, using the for loop.
按钮通过for循环被按了3次。
The second for loop in this example demonstrates how to avoid this problem.
本例中的第二个for循环演示了如何避免此问题。
Listing 4 demonstrates how to use a list with a for loop.
清单4演示了如何使用list和for循环。
In the case of a for loop, three additional data fields are generated.
对于for循环情况,会生成三个附加数据字段。
You already know how to use a for loop. Now let's talk about conditionals.
您已经了解了如何使用for 循环;现在,我们来讨论条件语句。
You can easily use a for loop within bash to do the job quickly.
在bash中,可以使用for循环轻松地实现这个目标。
The sequence diagram for the above for loop is shown in Figure 5.
图 5显示了上述for 循环的序列图。
The for loop, which executes a block of statements a certain number of times
for 循环,它对一个语句块执行一定次数。
The for loop, which executes a block of statements a certain number of times
for 循环,它对一个语句块执行一定次数。
应用推荐