块语句减少了当控制结构嵌套时候可能引起的混淆,提供了一种提高代码可读性的组织机制。
Block statements reduce the ambiguity that often arises when control constructs are nested, and they provide a mechanism for organizing the code for improved readability.
数组类型的变量有三个重要的限制:数组长度固定不变,在编译时必须知道其长度,数组只在定义它的块语句内存在。
A variable of array type has three important limitations: Its size is fixed, the size must be known at compile time, and the array exists only until the end of the block in which it was defined.
它使用这些信息来确保只对位于同一代码块中相同范围级别的赋值语句执行对齐。
It USES this information to ensure that it aligns only those assignment statements at the same scoping level in the same block of code.
每个探测子句由一个探测点指定语句、动作块和可选的断言组成。
Each probe clause consists of a probe point specification statement, action block, and an optional predicate.
但是您可能在想,语句块是什么意思呢。
存储过程为将语句绑定到块中提供了一种自然的方式。
A stored procedure provides a natural means to bundle statements into a block.
一个复合语句包括一个流控制指令,后跟一个冒号(:),然后再是一个程序语句块。
A compound statement consists of a flow control instruction, followed by a colon character (:), followed by a block of program statements.
查询编译器将视图定义展开成主语句块,从而产生一个更复杂的语句。
The query compiler expands view definitions into the main statement block, which might result in a more complex statement.
这些简单的案例中提供了表达式,但它们也可以是规定多条语句的代码块(使用花括号)。
In these simple cases, expressions are provided, but they could also be blocks of code (using curly braces) to specify multiple statements.
第一项限制是使用的格式,它必须是单条语句或者块。
The first restriction is the actual format, which must be a single statement or block.
因此COMMIT和rollback语句是事务实现的重要构建块。
So COMMIT and ROLLBACK statements are important building blocks of a transaction implementation.
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.
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.
有两个主要的if语句块。
例如,XOM在进行表查找的时候经常使用没有default块的switch语句。
For instance, XOM often USES switch statements without default blocks when doing table lookups.
块可以是任何lua语句序列。
while循环,它当一个测试表达式为true时执行一个语句块。
The while loop, which executes a block of statements as long as a test expression is true.
不精确地讲,包含System.err.println()语句的catch块可以被认为是错误处理,这是一个非常拙劣的方法。
While a catch block with a System.err.println() statement might be considered error-handling in the loosest sense of the word, it's a pretty poor approach.
for 循环,它对一个语句块执行一定次数。
The for loop, which executes a block of statements a certain number of times
mapping块的第一条语句将 AirportMapping类链接到 usgs_airports表。
The first statement in the mapping block links the AirportMapping class to the usgs_airports table.
GO TO标签语句可以无条件地退出循环,并将控制权转移到跟在指定的语句标签之后的可执行语句或语句块。
The GOTO label statement can unconditionally exit from a loop and transfer control to the executable statement or statement block that follows the specified statement label.
语句块由一个或多个简单语句和复合语句组成。
The block of statements is made up of one or more simple and compound statements.
为了处理长函数,我们通过垂直省略,缺省隐藏较大的语句块。
To handle long functions, we collapse large blocks by default, using vertical elision.
第一组闭合括弧划定一个匿名内部类的构造,第二组划定匿名内部类的实例初始化语句块。
The first set of enclosing braces delineates the construction of an anonymous inner class, and the second set delineates the instance initializer for the anonymous inner class.
例如,begin语句块会被首先执行,但它可以在程序中多次说明。
BEGIN blocks, for instance, will be executed first but can be specified many times throughout the program.
loop语句不限次数地执行一个语句块。
The LOOP statement executes a statement block for an unspecified number of iterations.
编译器可以把语句移入synchronized块——而不仅仅是把语句移出。
The compiler is allowed to move statements into a synchronized block — just not out of it.
应用推荐