Thus a sed script corresponds to the body of a loop that iterates through the lines of a stream,where the loop itself and the loop variable(the current line number) are implicit and maintained by sed.
For(定义循环变量;控制条件;改变循环变量){代码块;}.
For( definition of the control variable; loop repetition condition; changes in the control variable)..
同样,我还将循环变量直接命名为i,无任何额外的说明。
As well, I simply called the loop variable, without any extra comment, i.
然而,应避免但字符名称,除非是临时性变量或循环变量。
One-character variable names should be avoided except fortemporary variables and loop indices.
它们以我们编造的任意表达式开始,它使用一个循环变量(x+10)。
They begin with an arbitrary expression, which uses a loop variable(in our case it is x+ 10).
如果你之前写过for循环,那么你一定使用过i++来增加你的循环变量。
If you have written a for-loop before,then you have almost definitely used i++ before to increment your loop variable.
Foreach命令实现一个循环,在这里循环变量从一个或多个列表接受值。
The foreach command implements a loop where the loop variable(s) take on values from one or more lists.
它看起来像一个普通表达式,后面跟一个for定义循环变量、范围和可选的子句if条款。
It looks like a normal expression followed by a for clause defining a loop variable, range, and an optional if clause.
请注意:所有的”for”循环结构都允许我们在循环的内部来定义循环变量,比如此处的letkey。
Note that all“for” constructs allow us to declare theloopingvariable inside the loop, like let key here.
在比较强大的系统上,交换循环变量j和k就能带来10倍的性能改进。
On a powerful system swapping the j and k for loops can result in a 10x improvement.
它看起来像一个正常表达式,后面跟着一个for表达式,定义一个循环变量,范围和可选的if表达式。
It looks like a normal expression followed by a for expression defining a loop variable, range, and an optional if expression.
一定要记着在循环体中改变循环变量的值,否则会出现死循环(无休止的执行);
Must remember to change the value of theloopvariable in the loop body, otherwise, there will be an infinite loop(endless execution).
Python2时,listcomprehension会"泄露"循环控制变量到外边:.
In Python 2, the list comprehension"leaks" the loop control variable into the surrounding scope:.
For(循环控制变量初始化;循环控制条件;变量变化情况).
For( definition of the control variable;loop repetition condition; changes in the control variable).
在for循环主体中使用时,continue将使循环控制变量自动增加。
When used in the body of a for loop, continue will cause the loop control variable to be automatically incremented.
这些变量不是循环的局部变量,也就是说,它们与for循环所处的范围相同。
Variables declared with var are not local to the loop, i.e. they are in the same scope the for loop is in.
如果你在程序的其他地方需要使用循环控制变量,你就不能在for循环中声明它。
If you need to use the loop control variable elsewhere in your program, you will not be able to declare it inside the for loop..
其中,循环体的初始化部分(initialization)设置循环变量并为变量赋初始值。
In its most common form,the initialization portion of the loop sets a loop control variable to an initial value.
它通常将循环控制变量与目标值相比较。
It usually tests the loop control variable against a target value.
中文
Bahasa indonesia
日本語
عربى
Български
বাংলা
Český
Dansk
Deutsch
Ελληνικά
Español
Suomi
Français
עִברִית
हिंदी
Hrvatski
Magyar
Italiano
Қазақ
한국어
മലയാളം
मराठी
Bahasa malay
Nederlands
Norsk
Polski
Português
Română
Русский
Slovenský
Slovenski
Српски
Svenska
தமிழ்
తెలుగు
ไทย
Tagalog
Turkce
Українська
اردو
Tiếng việt