Listing 3. For loop conformance.
清单3.for循环的一致性。
The for loop and sequence indexing
for 循环和序列索引
Listing 2. The for loop and a tuple.
清单2.for循环和tuple。
Listing 1. Pseudocode for the for loop.
清单1.for循环的伪代码。
Listing 10. Pseudocode for the for loop.
清单10.for循环的伪代码。
Looking for loop holes in the contest rules.
比如说,寻找比赛规则的漏洞。
The next for loop processes just the HTTP links only.
接下来将只对HTTP链接进行循环处理。
Steps [3] and [4] are repeatedly executed in a for loop.
第[3]步和[4]步可以再循环中重复执行。
For loop conformance, consider the code snippet in Listing 3.
对于循环的一致性,可以考虑清单3中的代码片段。
The for loop is demonstrated in pseudocode format in Listing 10.
清单10中的伪代码格式演示了for循环。
You use a simple for loop to iterate through the posts in the blog.
可以使用简单的for循环遍历blog中的全部post。
YAMD tells us that we have an out-of-bounds condition in the for loop.
YAMD告诉我们在for循环中有“越界(out - of -bounds)”的情况。
The for loop essentially says "for each item element, do the following."
for循环实际是说“对每个item元素,做以下事情。”
Here's an example of a for loop written on the fly (shown in Listing 19).
下面是即时编写的for循环示例(见清单19)。
Up to this point we've been traversing the record store with a simple for loop.
至此,我们已经使用一个简单的for循环遍历了记录存储。
You can do this with a very simple for loop, as demonstrated in Listing 7 below.
您可以使用一个非常简单的for循环来完成这项任务,如下面的清单7所示。
The for loop iterates over the list of strings, printing them out one at a time.
for 循环在string列表上进行迭代,一次输出一行。
The Python for loop may seem odd if you've ever used another programming language.
如果您用过其他编程语言,Pythonfor循环可能看起来有点儿古怪。
Listing 3 demonstrates how to use a Python string as the container for a for loop.
清单3演示了如何使用Pythonstring作为for循环的容器。
The second for loop shown in Listing 2 also iterates over all elements in the tuple.
清单2中显示的第二个for循环也迭代tuple中的所有元素。
That's why the main test method in Listing 1 USES a while loop instead of a new for loop.
这就是为什么清单1中的main测试方法使用while循环而不是一个新的for循环。
The code in the for loop (Line 7) is where you process each of the supported options.
for循环(第7行)中的代码处理支持的每个选项。
This article has discussed the Python for loop and demonstrated some of its many USES.
本文讨论了Pythonfor循环并演示了它的一些使用方式。
Simply put, the for loop lets you iterate through the items in a collection of objects.
简单地说,使用for循环,可以迭代中对象集合的项目。
You can then split the string and iterate over the lines in the file within a for loop.
然后可以拆分string并在for循环中对文件的行进行迭代。
The second for loop only finds lowercase vowels as it iterates over the original string.
第二个for 循环在迭代原始 string 时仅查找小写元音字母。
Listing 2 demonstrates how to use a for loop to iterate through the elements of a tuple.
清单2演示了如何使用for循环迭代tuple的元素。
With Groovy 1.5, you can either chose the Groovy for / in, or prefer the classical for loop
在Groovy 1.5中,你可以选择Groovy的for/in构造,或者经典的for循环构造
The Python for loop can mimic this behavior by using the built-in range and xrange methods.
Pythonfor循环可以通过使用内置的range和xrange方法来模拟该行为。
A while loop will rarely include the number of iterations — unless it is a for loop in disguise.
while循环很少包含迭代次数——除非它是一个伪装的for循环。
应用推荐