一旦认为某个表达式是有效的,则它的第二项工作是将输入流分解成其组件块,并以某个有用的方式将它们提供给您。
Its second job, once an expression has been deemed valid, is to break the input stream into its component pieces and deliver those to you in some useful fashion.
该查询表达式是一个构建块,可以通过组装它为查询定义最后的选择谓词。
The query expression is a building block that can be assembled to define the final selection predicate for the query.
从现在起,我们把示例中的定义和表达式写在一块,你把它们怎么放都行。
From now on, we'll write our example definitions and expressions together, and you can put them in whichever area you prefer.
这些简单的案例中提供了表达式,但它们也可以是规定多条语句的代码块(使用花括号)。
In these simple cases, expressions are provided, but they could also be blocks of code (using curly braces) to specify multiple statements.
无论每个当前词查询的内容为何,都需要一次或多次为字符后接的字符块创建用于搜索的正则表达式。
Regardless of the content of each piece of the current word query, create a regular expression that searches for that chunk followed by a word character one or more times.
尽管清单6和清单7中的例子将表达式用作构建块,查询都是基于一个实体及其属性之上的。
Although the examples in Listing 6 and Listing 7 use expressions as the building blocks, the queries are based on a single entity and its attributes.
那是接近代码块顶部的正则表达式中的 “TMC2”。
That's the "TMC 2" in the regular expression toward the top of the block.
while循环与if语句一样,支持一个可选的else子句,其中包含一个当表达式计算为False时执行的程序语句块。
The while loop, as was the case with the if statement, supports an optional else clause containing a block of program statements executed when the expression is False.
if语句支持一个可选的else子句,指示当布尔表达式计算为False时应该处理的程序语句块。
The if statement supports an optional else clause that indicates a block of program statements that should be processed if the Boolean expression evaluates False.
Python中的第二种流控制语句是while循环,它在一个表达式计算为True时执行一个程序语句块。
The second type of flow control statement in Python is the while loop, which executes a block of program statements while an expression evaluates True.
因为Python需要缩进以错开当表达式计算为True或False时应该执行的语句块,所以两个print语句都缩进了4个空格。
Because Python requires indentation to offset the block of statements that should be executed if the expression evaluates True or False, the two print statements are both indented four Spaces.
if语句,它基于测试表达式的结果执行一个特定的语句块。
The if statement, which executes a particular block of statements based on the result of a test expression.
至此,已经看到了if语句可以如何用于根据一个特定布尔表达式的值,来执行两个程序语句块中的其中一个。
Up to this point, you've seen how the if statement can be used to execute one of two blocks of program statements, depending on the value of a particular Boolean expression.
while循环,它当一个测试表达式为true时执行一个语句块。
The while loop, which executes a block of statements as long as a test expression is true.
但是,lambda表达式被视为值,因此可存储在变量中并在将捕获的变量声明为超出范围的代码块执行之后执行。
But lambda expressions are treated as values and can therefore be stored in a variable and executed after the block in which the captured variable was declared has gone out of scope.
它还可以采取动作;当解析器达到表达式中的那个条件点时,封装在中的代码块将会被执行。
It can also take actions; blocks of code enclosed in pairs will be executed when the parser reaches that point in an expression. For instance, one might write.
Map和grep对列表的每个元素计算块或表达式。
Map and grep evaluate a block or an expression for each element of a list.
上述语句指定了一个表达式,该表达式产生了一个布尔值和一个不返回任何结果的代码块(Unit),这正是while所期望的。
The arguments above specify an expression that yields a boolean value and a block of code that returns nothing (Unit), which is exactly what while expects.
和大多数语言一样,Scala的if测试一个条件表达式,然后根据结果为真或假来跳转到响应语句块中。
As in most every language, Scala's if evaluates a conditional expression, then proceeds to a block if the result is true or branches to an alternate block if the result is false. A simple example.
由块三对角矩阵的LU分解,得到了其逆矩阵块元素的显式表达式。
With the LU decomposition of the block tridiagonal matrix, an explicit expression of the block inverse elements is obtained.
基于完全互信息梯度表达式及得分函数差分的性质,提出一种在线频域盲解卷积块算法。
An online block algorithm for frequency domain blind deconvolution was proposed based on the complete mutual information gradient and the properties of the score function difference (SFD).
这也就是布尔表达式的使用方法,比如在一继续方法比如个if-then-else块中。
That's exactly how Boolean expressions properti express boolean are used, for example, in an if-then-else construction.
这也就是布尔表达式的使用方法,比如在一继续方法比如个if-then-else块中。
That's exactly how Boolean expressions properti express boolean are used, for example, in an if-then-else construction.
应用推荐