常见的一种特殊情况就是在循环外部声明变量。
One special case that shows up frequently is declaring variables outside of loops.
所以在比较关键的循环中,我们要不使用全局变量。
We should therefore not use global variables inside critical loops.
毫无疑问,最常见的调试步骤是设置断点,这样可以检查条件语句或循环内的变量和值。
Undoubtedly, the most common debugging procedure is to set breakpoints that will allow the inspection of variables and the values inside conditional statements or loops.
在极少使用和测试的不重要情形中疏忽了为循环变量设置新值,这是常见的程序设计错误。
A common programming error is failure to set new values for loop variables in corner cases that are rarely used and tested.
清单20演示了如何使用循环变量来创建名称。
Listing 20 shows how names can be created using a loop variable.
毕竟XSLT缺少对很多算法来说极其重要的特性,其中包括循环和可变的变量。
After all, XSLT is missing some features that are important to a lot of algorithms, including loops and mutable variables.
您可以方便地创建变量、循环,使用条件和创建函数。
You won't have any trouble creating variables, looping, using conditionals, and creating functions.
完成了基本变量声明和子例程后,程序将继续进行主程序循环,如下所示。
With the base variable declarations and subroutine complete, the program moves on to the main program loop, shown below.
如清单1所示,变量和诸如循环等脚本控制结构使脚本更容易编写和维护。
As demonstrated in Listing 1, variables and script control structures, such as loops, make scripts easier to write and simpler to maintain.
所有这四个变量都是在循环外声明的,尽管它们仅在循环内部使用,但作用域不止于此。
All four variables are declared outside the loop and therefore have excessive scope even though they're only used inside the loop.
观察点是流程(任务、子流程、变量及循环)中的一些位置,在此需要测量以使KPI生效。
Observation points are the points in a process (tasks, subprocesses, variables, and loops) where measurements are needed to validate the KPI.
例如,编译器为了优化一个循环索引变量,可能会选择把它存储到一个寄存器中,或者缓存会延迟到一个更适合的时间,才把一个新的变量值存入主存。
For example, a compiler may choose to optimize a loop index variable by storing it in a register, or the cache may delay flushing a new value of a variable to main memory until a more opportune time.
另一个重要的更改是XPath 2.0支持循环和变量。
Another significant change is that XPath 2.0 supports loops and variables.
常用的汇编级结构,比如变量、循环、标签和宏。
Common assembly level constructs such as variables, loops, labels, and macros.
这些例子演示scheme的一些关键特性,此外还演示了变量、条件和循环。
These examples illustrate variables, conditionals, and loops in addition to some of the key features of Scheme.
接下来,只要它发现有数字或字母,就一直循环下去,并将字符累积在变量(token )中。
Next it loops for as long as it finds digits or letters and accumulates the character in a variable (token).
因为for循环给我提供了为变量准备的占位符,它们在分号之间,现在在while循环中,我没有这些。
Because the for loop hands me placeholders in between those semicolons for variables and such, now I don't have those with while loops.
后一种方法还会将您与视图中使用的临时循环变量名称_ course联系起来。
The latter approach also ties you to the name of the temporary loop variable used in the view, _course.
除首字母大写外、用小写字母打印并排序所有环境变量的多行循环。
A multi-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted.
使用map,并且除首字母大写外、以小写字母打印并排序所有环境变量的多行循环。
A multi-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted, using map.
除首字母大写外、用小写字母打印并排序所有环境变量的单行循环。
A one-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted.
使用map,并且除首字母大写外、以小写字母打印并排序所有环境变量的单行循环。
A one-line loop to print all the environment variables in lowercase, with the first letter uppercase, and sorted, using map.
for - each循环:当迭代数组时,编译器生成归纳变量和标准的数组迭代语法。
For-each loop: When iterating over an array, the compiler generates an induction variable and the standard array iteration idiom.
在模块include语句和初始变量声明之后,进入主控制循环。
After the module includes and the initial variable declarations, the main control loop is entered.
变量一般最好根据用途命名(如 firstName或rtitle),不过由于这个变量基本上是一个循环计数器,也可使用单个字母。
Normally, variables are best named by their use (like firstName or title), but as this variable is essentially a loop counter, using single letters is also fine.
临时变量设置完成后,一个for循环将处理每个span元素,并在文本加密后删除这些内容。
After setting up some temporary variables a for loop will process each of those span elements, and the contents will be written out if the text is encrypted.
我们将不会再这里等待100秒来等它完成,但是我们使用循环,我们更新一个变量,我们把它排成一个漂亮的格式。
And we won't wait here one hundred seconds for it to finish, but we're using the loop, we're updating a variable, and we're formatting it in a nice way.
我只声明了早已知道的一些变量类型,并使用最干净的Pyrexcounter循环。
I have just declared some variable types that I clearly know, and I used the cleanest Pyrex counter loop.
循环或列表中的变量包括了列表或对象集合的所有元素。
A variable in a loop or list comprehension ranges over the elements of a list, or a collection of objects.
还要认识到一点:可以将检查添加到把Opts词典条目转换为局部变量的循环中。
Another thing to realize is that you can add the checks to the same loop that you use to create local variables from the Opts dictionary.
应用推荐