它只保存一段数据:一个字符串、一个数字、未定义的值以及对另一个变量的引用。
They hold only one piece of data: a string, a number, the undefined value, a reference to another variable.
还要设置变量作用域,以限制变量只在某个“会话”中活动。
Set the variable scope to limit variables to live only within a "session".
这些程序假定人们能够处于一个与世隔绝的封闭系统之中,这个系统只包含有限数量的变量和有限范围的结果。
These procedures assume they can isolate from the rest of the world a closed system containing only a limited number of variables and a limited range of consequences.
为了保持示例的简单性,我们只抓取第一个并保存在全局变量中。
To keep the example simple, you only grab the first one and store it in your global variable.
只在脚本开始时定义变量并为其赋值。
Define and assign variables only at the beginning of a script.
第一个文件不重要,只包含那些必须在每个包中配置的环境变量。
Our first file is trivial, and contains only those environment variables that must be configured on a per-package basis.
除了使用正确的倍数,估值模型不应只以一个倍数变量为根据。
In addition to using the right multiples, the valuation model should be based on more than just one variable.
换句话说,这意味着老的内存模型只保证正在读或写的变量的可见性,不保证写入其他变量的可见性。
In other words, this means that the old memory model made promises only about the visibility of the variable being read or written, and no promises about the visibility of writes to other variables.
这个设置只覆盖着一个进程—它不会对整个系统的全局变量进行赋值。
The setting is overridden just for this single process - it doesn't reassign the global variable for the entire system.
视图可以在谓词中使用该全局变量的值,从而只选择分配给用户所在部门的行。
A view could use the value of this global variable in a predicate to select only those rows for which the user's department is assigned.
这里只讨论了一部分变量;更详细的信息参见参考资料。
The discussion covers only a cross section of the variables; for a detailed discussion, see the Resources section.
进行单元测试的一个良好做法是只测试需要测试的代码,避免创建不必要的对象和变量。
A good practice when unit testing is to only test exactly what you are intending to, and avoid having to setup more objects and variables than you absolutely need.
因为数据库不支持与实体相关联的行为,领域模型最终只具有简单的变量以及相关的getter和setter方法。
Because databases do not support behavior associated with entities, the domain model ended up having simple variables with getter and setter methods for them.
它们可以是有关多个变量的,这种模糊性可能只存在于某些特定的值的组合中。
They can be about multiple variables and the ambiguity might only exist with particular combinations of values. For example.
这些变量不仅是私有的,而且只属于converter类的特定实例。
Not only are the variables private but they are private to the particular instance of the Converter class.
只在脚本开始时定义变量并为其赋值。
Define and assign your variables only at the beginning of your script.
volatile的旧语义只承诺正在读和写的变量的可见性,而不承诺其他的变量。
The old semantics of volatile only made promises about the visibility of the variable being read or written, and no promises about other variables.
内部类以及lambda表达式一个局限性是——它们只引用来自它们的词法作用域的最终(final)局部变量。
One limitation of inner classes - and lambda expressions too - is that they can only refer to final local variables from their lexical scope.
对我们来说幸运的是,这没有问题,因为变量扩展只在执行user_compile时才发生。
Fortunately for us, this is OK because variable expansion only happens when user_compile is executed.
举一个更为现实和复杂的例子,WorkUnit可能有很多实例变量,它们实际上只在由Worker运行的时候才是相关的。
For in a more realistic and complex example, the WorkUnit may have many instance variables that are really only relevant when it is being run by the Worker.
这个phpinfo.php文件是最基础的,只包含一行PHP 代码 —对phpinfo() 的调用,这个函数输出Titanium 的 PHP环境中的每个变量和设置(参见清单7)。
The phpinfo.php file will be basic, containing just one line of PHP — a call to phpinfo(), which dumps out every variable and setting in Titanium's PHP environment (see Listing 7).
我只声明了早已知道的一些变量类型,并使用最干净的Pyrexcounter循环。
I have just declared some variable types that I clearly know, and I used the cleanest Pyrex counter loop.
参数化的一个办法就是只把x看作变量。
Well, one way to parameterize that is just use the x variable.
这个版本的代码添加了一个布尔变量inelement,它保证只从所处理的元素中提取文字内容。
This version of the code adds a Boolean variable, inElement, which ensures that textual content is only picked up specifically for the element being dealt with.
这时,您将应用一个对关联记录列表的过滤器,只选中相应城市的记录,城市由largestCityVarsessionScope变量来指定。
This time, you will apply a filter to the Relational Record List to select only the records that correspond to the city, as specified by the largestCityVar sessionScope variable.
只向DBA用户ID授予对变量的写权限。
Grant the privilege to write to the variable only to the DBA user id.
记住,您只在表达式为True时执行if语句体。该表达式在当变量i不能被25整除时计算为True。
Remember that you execute the body of an if statement only if the expression is True, which for this expression happens when the variable I is not evenly divisible by 25.
密码期限只使用一次,但是我喜欢为它创建一个变量,并将变量与其他的用户可编辑字段放置在一起。
Password expiry is only used once but I like to create a variable for it and place the variable with the other user-edited fields.
例如,交付一个包,该包只交付用户需要从数据源获得的东西,而不是允许他们查看所有变量的内容。
For example, deliver a package that delivers only what the users need from a data source, rather than allowing them to see all available content.
例如,交付一个包,该包只交付用户需要从数据源获得的东西,而不是允许他们查看所有变量的内容。
For example, deliver a package that delivers only what the users need from a data source, rather than allowing them to see all available content.
应用推荐