变量声明时初始化优于赋值语句。
使用标准赋值语句将源数组赋给目标数组。
Use a standard assignment statement to assign the source array to the destination array.
另一种更紧凑的表达方式是使用下面这样的赋值语句。
Another, more compact way to represent the same expression is to use an assignment statement similar to this.
编译器极有可能把上述赋值语句编译成一条机器指令。
The compiler will after all very likely compile the above assignment into a single machine instruction.
注意一个函数赋值或对象赋值语句也是赋值语句,应该以分号结尾。
Note that an assignment statement which is assigning a function literal or object literal is still an assignment statement and must end with a semicolon.
它使用这些信息来确保只对位于同一代码块中相同范围级别的赋值语句执行对齐。
It USES this information to ensure that it aligns only those assignment statements at the same scoping level in the same block of code.
若要设置默认属性值,请在赋值语句左侧使用带有参数列表的变量名。
To set the default property value, use the variable name, with an argument list, on the left side of an assignment statement.
如果重复的声明有一个初始值,那么它担当的不过是一个赋值语句的角色。
If the repeated declaration has an initializer, it ACTS as if it were simply an assignment statement.
方括号内的表达式是一个元组。我们可以用元组赋值语句来遍历这个字典。
The expression in brackets is a tuple. We could use tuple assignment to traverse this dictionary.
Lua允许使用多种赋值语句,可以先对表达式进行求值,然后再进行赋值。
Lua allows multiple assignments, and expressions are evaluated first and are then assigned. For example, the statements
元组赋值:一种赋值语句,等号右侧用一个序列,左侧为一个变量构成的元组。
An assignment with a sequence on the right side and a tuple of variables on the left.
标识符是在赋值语句中进行定义和初始化的,并且可以在任何允许使用的地方使用。
An identifier is defined and initialized in an assignment and can be used anywhere a value is allowed. Listing 3 shows a sample grammar.
声明:一组表示一种命令或者动作的代码,目前我们了解的只有赋值语句和打印语句。
A section of code that represents a command or action. So far, the statements we have seen are assignments and print statements.
所有其它语句的存在,只是为了能使那些根植于赋值语句的计算结构可以正确地运行。
All the other statements of the language exist in order to make it possible to perform a computation that must be based on this primitive construct: the assignment statement.
首先,不应该假定上述赋值语句一定会被编译成一条机器指令,除非亲自验证了机器代码。
First, you shouldn't assume that the above assignment would be compiled as a single machine instruction unless you personally verify the machine code yourself.
让我们首先查看许多PHP应用程序中的一项常用技术;将某些种类的信息存入程序开头的变量赋值语句中。
Let's start by looking at a common technique in many PHP applications: placing certain kinds of information in variable assignment statements at the top of the program.
数组变量持有一个指针,它指向构成数组元素的数据及秩和长度信息,赋值语句仅复制此指针。
An array variable holds a pointer to the data constituting the array elements and the rank and length information, and an assignment copies only this pointer.
一般来讲,你可以用条件表达式来替换掉条件语句,无论这些语句的分支是返回语句或者是赋值语句。
In general, you can replace a conditional statement with a conditional expression if both branches contain simple expressions that are either returned or assigned to the same variable.
变量是左值,因此可以出现在赋值语句的左边。数字字面值是右值,因此不能被赋值。给定以下变量。
Variables are lvalues and so may appear on the left-hand side of an assignment. Numeric literals are rvalues and so may not be assigned. Given the variables.
例如你要写一句赋值语句,你可以声明任何类型的变量,在等号的左边使用任何标识符,然后在右边给出任何的表达式。
In writing an assignment statement, for example, you can declare variables of any type, use any identifier to the left of the equal sign, and supply any expression on the right.
这是本例子第一次把关联作为一个定义表达式(换句话说,一个赋值语句)的声明性陈述来使用,而不是用它作模型到模型的映射。
This is the first time that this example is using a relation as a declarative statement to define an expression (in other words, a value assignment) instead of using it for model-to-model mapping.
和字符串不同的是,列表是可以修改的。方括号运算符放到一个赋值语句的等号左侧的时候,就会把对应位置的列表元素重新赋值。
Unlike strings, lists are mutable. When the bracket operator appears on the left side of an assignment, it identifies the element of the list that will be assigned.
另外,对于每种可能出现的异常的响应是不做任何事,但是CONTINUEHANDLER声明需要一个完整的sql语句;因此使用伪赋值。
Also, the response to each of the anticipated exceptions is to do nothing, but the CONTINUE HANDLER declaration expects a complete SQL statement; hence the dummy assignment.
避免在if和while语句的条件部分进行赋值。
Avoid doing assignments in the condition part of if and while statements.
变量赋值,比如set语句。
与赋值不同,语句是用关键字引入的。
Other than for assignment, statements are introduced by keywords.
只有在赋值和调用时,表达式才应被当作一条单独的语句。
The only expressions that should be used as statements are assignments and invocations.
下面的步骤将创建这些变量并为其赋值,还将添加日志记录语句,以便了解在计算机运行时发生的情况。
The next steps will create and assign values to those variables along with a logging statement so you can see what is occurring as the machine runs.
就像前面语句中n1 +n2这个表达式一样,这次也是通过一条含有+的表达式来赋值的。
Just like the n1 + n2 expression from the previous statement, this value is given by an expression involving the + operator.
就像前面语句中n1 +n2这个表达式一样,这次也是通过一条含有+的表达式来赋值的。
Just like the n1 + n2 expression from the previous statement, this value is given by an expression involving the + operator.
应用推荐