How to organize a single array into a two-dimensional one?
如何组织一个数组变成二维的呢?
Commas separate the values within each annotation, as well as the value within a single array.
逗号分隔每个注释内的值,以及单个数组内的值。
This routine checks the total length of the pieces and creates a new, single array that is that long.
这个例程检查所有片段的总长度并创建一个具有这种长度的新数组。
The second and more important parameter is the results array, which returns a single array element for each batch that was executed.
第二个也是较重要的参数是结果阵列,会针对每个执行的批次传回单一阵列元素。
Storage device-based virtualization provides the facility to join multiple physical disks in a single array and divide it to multiple volumes of different sizes based on requirements.
基于存储设备的虚拟化可以把多个物理磁盘放在单一阵列中,并根据需求把它划分为多个不同大小的卷。
For arrays, additional methods are also generated to store and retrieve single values in the array; these methods take an array index as an argument.
对于数组而言,也生成了额外的方法来存储并检索数组中的单一值,这些方法将数组索引作为参数。
For an active/passive storage RAID array, your host can only reach one single LUN from this array by one of these two paths at any time.
对于主动/被动存储器RAID阵列,任何时候,您的主机只能通过其中一条路径到达该阵列的一个LUN。
For instance, did you notice that there were no single quotes around the array indexes ($x[sales] and $x[profit])?
比如,你有没有发现在数组索引里没有用引号将字符串括起来?
The custom tag also has an optional params attribute, which can be a single object or an array of objects.
这个定制标记还有一个可选的 params属性,它可以是一个单一的对象或一个对象数组。
This is the outline of a JSON object with a single property named items, whose value is an array of objects.
上述是一个JSON对象的概览,该对象具有一个单一属性,名为items,其值为一个对象数组。
With that, you've got all the data -- array format, multiple rows, single values, whatever you stuffed into your JSON data structure -- into a native PHP format, in the $value variable.
通过该模板,可将获得的所有数据(数组格式的、多行的、单值的或JSON 数据结构中的任何内容)转换成原生PHP 格式,放在 $value 变量中。
In this case, the function may be called with as many arguments as you wish, and those values are collected into a single variable: an array named a: 000.
在本例中,函数可以使用任意数量的参数调用,并且这些值被收集到一个单一变量中:一个名为a: 000的数组。
The ClassTransformer's single method - transform - is passed the class to be redefined and a byte array containing the class's bytecode.
ClassTransformer的单个方法—transform—被传入要重定义的类和包含类的字节码的字节数组。
Otherwise, there can be confusion over whether an empty array is a null object, an array with no elements, or an array with a single object containing null or empty values.
否则,可能对一个空数组是null对象还是没有任何元素的数组,亦或带有一个对象且此对象包含null或空值的数组产生混淆。
As shown, it is a "data" bean with a single property, a String array of state abbreviations.
您可以看到,它是“数据”bean,它有一个属性,即州名缩写的String的数组。
The rope's construction is a key factor: When a rope is constructed directly from an underlying CharacterSequence or character array, it has a simple structure consisting of a single flat rope.
rope的构建是个关键因素:当直接使用底层的CharacterSequence或字符数组构建rope时,它只有一个简单的结构,里面包含一个扁平rope。
In this case, there's a single variable, named people, and the value is the array containing three items, each of which is a person record with a first name, a last name, and an e-mail address.
在这个示例中,只有一个名为 people的变量,值是包含三个条目的数组,每个条目是一个人的记录,其中包含名、姓和电子邮件地址。
The value supplied here is fairly complex, but the use of TODOItems actually matches the single-value annotation style — except that the single value is an array.
这里提供的值比较复杂,但TODOItems的使用实际与单一值注释类型相符,只是这里的单一值是数组而已。
When you cast the integer into a single byte, only the least significant byte (0x00 to 0x7f) will be copied as a hex value to the single-byte array.
将这个整数造型为一个单字节时,只有最低有效位字节(0x00到 0x7f)会作为十六进制值拷贝到单字节数组。
Another way of building an array in a single operation is by using a constructor by query, which creates an array with the values returned by a single-column sub-select, as shown in the listing below.
在单一操作中构建阵列的另一种方式是使用通过查询的构造函数,其创建具有由单列子选择返回的值的阵列,如以下清单所示。
To create a single dimensional array of the type a [m] (where m is an integer variable already defined and initialized), apply the cpp_type stereotype on the array variable a in the UML model.
要创建一个类型为a [m]的一维数组(这里的m是一个已经被定义和初始化的整数变量),可以在uml模型中在这个数组变量a上运行cpp _type原型。
I've tried the latter approach in Listing 6. (Note that filter takes a (t) : Booleanmethod, meaning it takes a single parameter of whatever type the array holds and returns a Boolean.)
我在清单6中采取了后一种方法(注意filter使用了一个(t):Boolean方法,意味着使用数组持有的任意类型的参数,并返回一个Boolean)。
It takes a single parameter, a function, and applies the function to each element in the array.
它接受单个参数:一个函数,并将此函数应用于数组内的每个元素。
Thus, I can cast the result of the bitwise operation as a byte, put the byte in a single-byte array, and return the array to the calling application.
因此,我可以将按位操作的结果造型为一个字节,将这个字节放入一个单字节数组,并将这个数组返回给调用应用程序。
After you have the array of the found tags, you create a table in which each row has a single image tag that USES the file name in the source.
有了所找到的标记的数组后,创建一张表,表中每一行都有单一一个图像标记,该标记使用源中的文件名。
Since it is limited to a single machine you need a powerful database server and a storage array network for it to be effective.
因为它仅限于单个机器,所以想要让它有效率,你需要强大的数据库服务器和存储阵列网络。
With the allowed parameters defined in an array, the call from the application program to the argument processing code can be kept as simple as a single call to a static method.
有了得到允许的在一个数组中定义的形参,应用程序对参数处理代码的调用就可以像对一个静态方法的单个调用一样简单。
While the semantics of the input arguments remain the same as in the Data Distribution Policy, the return value now contains an array of slice identifiers instead of a single one.
虽然输入参数的语义与数据分布策略内的相同,返回值现在包含一个片标识的数组,而非单一一个片标识。
Each physical disk drive in the array is represented by a single rectangle and that rectangle corresponds with the physical location of the drive in the array.
阵列中的每一个物理磁盘驱动器都表示为一个矩形,而这个矩形对应于阵列中某个物理位置的驱动器。
While individual attachments are used for these, they could have also been included in a single attachment array.
尽管我们对这些美术文档使用了多个单独的附件,这些附件也可以包含在单个附件数组中。
应用推荐