为简单起见,您只对 output1.rate变量赋过值而未对 output1.destination 变量赋值。
它还可以节省时间,如果对于节点集的唯一操作就是测试它是否是空的(通常是这种情况),或者对它的第一个元素进行赋值。
It can also save time, if it turns out (as it often does) that the only thing done with the node-set is to test whether it is empty, or to get the value of its first element.
命令式编程的用户对赋值的依赖要超过其他编程技术。
Users of imperative languages rely on assignments more than any other programming technique.
如果要给注释赋值,在注释名后面的圆括号中以名值对的形式给出。
If values are to be supplied for the annotation, these are given as name-value pairs in parentheses following the annotation name.
所以,当你告诉计算机,对某个电路开关进行特定的赋值时,相比使用一串1和0的序列,比如“0101010”,你可以使用短语“LETX=2”,同样达到相同的目的。
So rather than tell the computer in 1's and 0's ('0101010' say) to put a particular set of values into a particular circuit, you could use the phrase 'LET X=2' to mean the same.
对用户来说,最棒的是他们不再局限于简单的赋值;用Lua表达的配置文件可以有注释、条件等。
What makes this excellent for users is that they are no longer restricted to simple assignments of values; configuration files expressed as Lua can have comments, conditionals, and more.
通常对变量的赋值只有一次,并被当作不变的对象。
Often a variable is only assigned to once and is used as an (immutable) definition.
为了避免别名效应,您需要调用内置的copy函数来复制列表,然后改为对副本进行赋值。
To avoid this aliasing effect, you need to call the built-in copy function to duplicate the list, and then assign the copy instead.
注意,我们使用NotesGroup的Description属性来对列表描述字段进行赋值。
Notice we use the Description property of NotesGroup to assign the list description field.
另外一种解决方案是对整个表达式进行转换,这样就可以在赋值时进行符号扩展。
Another solution is to cast the entire expression such that sign extension occurs on assignment. For example, consider the problem caused by the following.
具名与默认参数经常搭配使用,我们可以根据参数名称为参数赋值,同时对其他参数使用默认值,如下代码片段所示
Named and default arguments work hand in hand; one can pick a certain parameter by its name and use defaults for the others
字段访问连接点对应着字段的读和写;在这个例子中,在Accoun t类上对name字段进行了赋值。
Field access join points correspond to reads and writes of fields; in this case, an assignment of the name field that is made on the Account class.
然后给它们赋值半径和角度,然后我可以进行刚才的操作,也就是说,对刚才的笛卡尔坐标进行的操作,让我们来运行下它吧,运行下,现在我有一个极坐标点。
And then I could do things like again, say, okay having done, that let me just run it here, run that, so I've now got polar point 1, and polar point 2.
Tuscany运行时将在组合中对其实例化并赋值。
They get initialized and assigned the value given in the composite by the Tuscany runtime.
当用外部的x对closuredemoparentfunction进行调用时,外部函数变量a就会被赋值为外部的x。
When a call is made to closureDemoParentFunction with a parameter of outer x, the outer function variable a is assigned the value outer x.
这是我想要的对吧?,在局部程序中x被赋值为,我给它加了1,我得到了?
Locally x got bound to 3, 3 I added 1 to it, whoop-dee-doo, 4 I get back a 4. But what's the value of x?
对变量进行再赋值总是很有用的,但你用的时候要做好备注和提示。如果变量的值频繁变化,就可能让代码难以阅读和调试。
Reassigning variables is often useful, but you should use it with caution. If the values of variables change frequently, it can make the code difficult to read and debug.
平常大家在纸上对变量赋值的方法就是写下名字,然后一个箭头指向它的值。
A common way to represent variables on paper is to write the name with an arrow pointing to its value.
对这些变量的赋值将会由真正的游戏引擎而不是我们的脚本语言完成。
The actual game engine, not our scripting language, will assign the values in these variables.
通过对一个对象的属性进行赋值就可以修改该对象的状态了。
You can change the state of an object by making an assignment to one of its attributes.
对并发传值系统进行模型检测需要建立相应的抽象模型,带赋值的符号迁移图是一种广为使用的抽象模型。
To model check a value-passing concurrent system, an abstract model must be constructed, and Symbolic Transition Graphs with Assignment is such an abstract model.
最常见的一种再赋值就是对变量进行更新,这种情况下新的值是在旧值基础上进行修改得到的。
A common kind of reassignment is an update, where the new value of the variable depends on the old.
再赋值:对一个已经存在的有值变量赋予一个新的值。
增加,在表达式中对只读变量进行赋值的错误消息。
Added error message when assigning to a read-only var in an expression.
最后,根据正交子句组对整个赋值空间的覆盖情况来判断SAT是否满足。
Finally, the satisfiability of a SAT problem is verified by the covering of orthogonal clause group on the whole assignment space.
本文利用微分迭代法,对油墨转移方程参数赋值。
Ink transfer equation parameters are assigned by differential iteration scheme.
本文利用微分迭代法,对油墨转移方程参数赋值。
Ink transfer equation parameters are assigned by differential iteration scheme.
应用推荐