显示简单变量,迭代整个数组或关联数组,以及显示类的成员。
Display a simple variable, iterate over an array or associative array, and display the members of a class.
下面的示例演示如何循环一个序列,以及如何使用元组模式来代替简单变量。
The following example shows how to loop over a sequence, and how to use a tuple pattern instead of a simple variable.
到目前为止,您已经创建了一个脚本标头和一些简单变量,并且添加了一个函数,如清单14所示。
So far, you've created a script header and some simple variables and added a function, as shown in Listing 14.
统计获取了滑坡与因素的关系特征,并应用简单变量统计模型开展了研究区滑坡灾害预测。
Simple-variable statistical model was used to predict and evaluate landslide hazards of the research region.
电子表格还可用于简单变量的计算或对不同研究中不同格式的数据进行单位换算(如磅换算为千克)。
They also can be used to calculate simple variables or conversions (e. g. pounds to kilograms) for data that is presented in various formats in different studies.
在以下关于锁定机制的讨论中,我们首先看一下原子运算符,它可以保护简单变量(计数器和位掩码(bitmask))。
In the following review of locking mechanisms, we first look at the atomic operators, which provide protection for simple variables (counters and bitmasks).
简单地说,类是一个由变量和方法组成的离散块或束。
Put simply, a class is a discrete block or bundle of variables and methods.
这个简单的函数接受任何变量,并将它显示在屏幕上。
This simple function takes in any variable and displays it to the screen.
现在您已经了解了如何使用全局变量执行简单的操作,本节将提供一些有趣的场景以展示如何使用它们。
Now that you know how to do simple operations with global variables, this section provides some interesting scenarios that show you how you can use them.
它使用占位符变量和简单的逻辑语句定义应该在模板中填充的数据。
It USES placeholder variables and simple logic statements to define what data should be populated into the template.
在模块的加载和卸载期间,模块子系统维护了一组简单的状态变量,用于表示模块的操作。
During module load and unload, the module subsystem maintains a simple set of state variables to indicate the operation of a module.
下列代码显示了一个简单的展示变量内容的完成消息。
The code below shows a simple completion message displaying a variable's content.
访问数据点变得和访问对象变量一样简单。
Accessing data points becomes as easy as accessing object variables.
该属性是一个简单的文本值,为类、字段、方法或变量解码泛型信息。
This attribute is a simple text value that encodes the generics information for a class, field, method, or variable.
我们需要复制该变量的值以使创建新的变量更加简单,因此继续下一步,将该变量的值复制到剪贴板。
We want to copy the value of this variable to make creating the new one easier, so go ahead and copy the value of that variable to the clipboard.
标量变量简单而又不可缺少。
要理解这三个属性之间的关系,可以把变量简单的想象成一个外面贴着标签的盒子。
To understand the relationship of these attributes, it is easiest to think of a variable as a box with a label attached to the outside.
只能把简单的常量值赋给实例变量。
The only values you can assign to an instance variable are simple constants.
比如你简单修改变量的类型和方法的名字,这样程序就可以做实数的加法了,如图2 - 3。
You could, for example, change this program so that it added two real Numbers simply by changing the types of the variables and the names of the input methods, as shown in Figure 2-3.
限制活变量的最大数目:通常可以使用简单小巧的表达式,在函数内部不使用太多的变量。
Limiting the maximum number of live variables: this is typically achieved by keeping expressions simple and small, and not using too many variables in a function.
这些变量及其注释都非常简单。
These variables and their comments are relatively straightforward.
因为数据库不支持与实体相关联的行为,领域模型最终只具有简单的变量以及相关的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.
所有简单类型的局部变量的值都会在这个buffer中显示。
All local variable that are simple types display their values in this buffer.
声明变量的步骤是快捷且简单的
在这个简单的例子中,不必使用变量,若使用的话,应该定义为具有select属性。
In this simple example, the variable is not necessary and, even if used, could have been defined with a select attribute.
然而,标记成“BusinessRelevant”的变量必须是简单数据类型。
However, the variables that are marked as "BusinessRelevant" must be simple data types.
由于Ruby并不需要声明实例变量,因此建模实例变量最简单的方式就是使用散列。
Because Ruby does not require instance variable declaration, the simplest way to model instance variables is with a hash.
这是一个最简单的变量,它不会执行中断禁用,但是包含全部的内存壁垒(memory barrier)。
This is the simplest and performs no interrupt disabling but includes full memory barriers.
为了在变量和概要条目之间保持简单的映射,在对变量进行命名时,在概要条目名称的前面加上前缀pfvar _。
In order to keep a simple map between variables and the profiles entries, name the variables using a prefix pfvar_ concatenated to the name of the profile entry.
接下来的三个变量也非常简单:files列表包含指定路径中的所有文件和文件夹,另外还包含bytes和numfiles两个变量。
The next three variables are just as simple: a files list that contains all the files and folders located at your designated path and two variables called bytes and numfiles.
应用推荐