This for-loop spits out everything cmislib knows about the repository. (I truncated the listing for the sake of brevity).
下面的 for 循环将列示 cmislib知道的关于存储库的所有信息(为了更加简洁,我截短了输出清单)。
For loop conformance, consider the code snippet in Listing 3.
对于循环的一致性,可以考虑清单3中的代码片段。
The next for loop processes just the HTTP links only.
接下来将只对HTTP链接进行循环处理。
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循环?
The basic syntax of a for loop is shown in Listing 1, which also demonstrates how to use continue and break statements within a for loop.
清单1中显示了for循环的基本语法,还演示了如何在for循环中使用continue和break语句。
But from that we developed a very useful construct, which is the "for" loop.
然而由此我们发明了一个非常有用的结构,这就是“for”循环。
A common programming error is failure to set new values for loop variables in corner cases that are rarely used and tested.
在极少使用和测试的不重要情形中疏忽了为循环变量设置新值,这是常见的程序设计错误。
The for loop now iterates through the copy, while you're modifying the original list.
现在for 循环将迭代该副本,而对原始 list进行修改。
We leave it as an exercise to the reader to rewrite the outermost for loop in a more elegant fashion.
我们留给读者一个练习,以更好的形式重写循环的最外层。
This example USES two for loops. The outer for loop takes care of each row in The Times table, and the nested for loop takes care of the columns within each row.
本例使用两个for循环,外面的for循环关注乘法表中的每一行,嵌套的for循环关注每行内的列。
The for loop then repeatedly calls the.next method of this iterator until it encounters a StopIteration exception.
然后,for循环反复调用这个迭代器的. next方法,直到它遇到StopIteration异常为止。
Now, even though the "for" loop is a very powerful construct, it is often prone to misuse.
现在,尽管“for”循环是一个非常强大的结构,但它也经常被滥用。
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 first for loop in AlignAssignments() determines the column in which the assignment operators should be aligned.
AlignAssignments()中的第一个for循环判断其中的赋值运算符应当对齐的列。
A while loop will rarely include the number of iterations — unless it is a for loop in disguise.
while循环很少包含迭代次数——除非它是一个伪装的for循环。
That's why the main test method in Listing 1 USES a while loop instead of a new for loop.
这就是为什么清单1中的main测试方法使用while循环而不是一个新的for循环。
This is actually what the statement looks like once the compiler converts it internally to a normal for loop.
以下是编译器把该循环转换成普通的for循环之后,语句实际看起来的样子。
This article has introduced three Python program statements: the if statement, the while loop, and the for loop.
本文介绍了三种Python程序语句:if语句、while循环和for循环。
Few people can really truly simulate in their minds a "for" loop, so errors in that construct are not uncommon.
很少有人真正能在他们脑子中模拟“for”循环,因此该结构中的错误不胜枚举。
The while loop (like the for loop introduced later in this article) supports three additional statements
while循环(与本文后面介绍的for 循环一样)支持三种附加语句
This shows that the error occurred on the third time through the "for" loop (I equals 2) when "value" equaled "div".
此信息显示了在第三次执行“for ”循环时(i等于2)发生了错误,此时“value ”等于“div ”。
At first the enumeration loop seems to provide essentially the same functionality as our for loop did, but in fact it offers a lot more functionality.
乍一看,枚举循环提供的功能与for循环提供的没什么不同,但实际上它提供了多得多的功能。
Is the loop header reserved for loop control?
循环的头部是否进行循环控制?
Is manually updating a for loop iterator bad practice?
手动更新循环迭代器不好的做法?
Trapezoidal Numerical Integration in MATLAB without using a FOR loop?
没有循环的使用MATLAB中的梯形数值积分?
Compensation: This pin is the Error Amplifier output and is made available for loop compensation.
该引脚是误差放大器的输出,并提供环路补偿。
The for loop and sequence indexing
for 循环和序列索引
Listing 3. For loop conformance.
清单3.for循环的一致性。
应用推荐