可以使用类似数组的语法访问字符串中的各个字符,如下所示。
You can access individual characters in a string by using array-like syntax, as follows.
这个特性与新的对象创建语法关系密切,新的语法可以用类似数组的语法很容易地在Groovy 中创建 非定制类。
This feature goes hand-in-hand with a new syntax for object creation, which makes it easy to create non-custom classes in Groovy with an array-like syntax.
大多数组彼此之间的差别在统计上并不明显;然而,70分贝组的参与者——那些被置于类似咖啡店背景谈话声的噪音水平中的参与者——其表现明显好于其他组。
The differences between most of the groups were statistically insignificant; however, the participants in the 70 decibels group—those exposed to a level of noise similar to background chatter in a coffee shop—significantly outperformed the other groups.
虽然二维数组与线性代数中的矩阵类似,但是对它们的操作(比如乘)与线性代数中的操作(比如矩阵乘)是完全不同的。
Even though two-dimensional arrays are similar to matrices from linear algebra, operations (such as multiply) have nothing to do with the operations in linear algebra (such as matrix multiplication).
字典类似于关联数组或散列;它使用键值对来存储和限制信息。
A dictionary is like an associative array or hash: It USES key-value pairs to store and retrieve information.
散列项类似于数组,易于设置但难以除去。
Hash entries are, similarly to arrays, easy to set but difficult to remove.
解析过程中,配置文件中的元素和数据转化成类似PHP关联数组的键-值对。
During this parsing process, the elements and data in the configuration file are converted into key-value pairs, similar to that found in a PHP associative array.
类似的,COBOL不支持非固定的数组。
与resolve类似,这个方法也会返回一个配置对象数组,因为许多配置对象都可以匹配这种模式。
Similar to resolve, this method also returns an array of config objects, since multiple config objects can match the pattern.
该列表与普通C程序中的argv 列表类似,定义了应用程序(数组第一个元素)和参数列表。
This list is similar to the argv list used in common C programs and defines the application (first element of the array) and argument list.
第二个参数(这里保留为null)类似于TrustManager对象数组,稍后我们将使用它们。
The second argument, which is left null here, is a similar array of TrustManager objects, which we'll play with later.
与为自动完成控件创建的值提供者类似,我们还要创建一个Servlet,返回包含值的JSON数组。
Similar to the value provider you created for the auto-complete control, you create a Servlet to return a JSON array containing the values.
jQuery对象类似于数组,但是它附带有大量特殊的jQuery函数。
A jQuery object is something like an array but comes with a ton of special jQuery functions.
全局变量c之类的结构体的嵌套层次比数组更深,其值也可以用类似方法浏览。
Structures such as the global variable c have a deeper level of nesting than arrays do, and their values can be explored in a similar manner.
倒排映射和压缩数组等其他一些数据结构也具有类似的优点;参考资料一节中Gillam的书中有关于这些数据结构更详细的资料。
There are other structures such as inversion maps and compact arrays that also merit a closer look; see the Gillam book in the Resources section for more information on those.
这个事实使得类似 $fr['translations']['TREE'];的查询有些碰运气,除非进行查询的代码确定数组的起源。
This fact makes a query like $fr['translations']['TREE']; somewhat hit and miss, unless the code making the query is sure of the provenance of the array.
相反,Vimscript中的列表的序列是可变的,并且在很多情况下类似于匿名数组数据结构。
In contrast, lists in Vimscript are mutable and in many ways far more like (references to) anonymous-array data structures.
为此,您可以使用Ruby中的hash类,它允许您创建键值对(类似于数组),但是随后可以轻松地通过键引用它们。
For this purpose, you use the hash class in Ruby, which allows you to create key-value pairs (in what appears to be an array), but then easily reference them later by key.
当然,字符串数组不是惟一可以接受或返回的数组类型,INTEGERARRAY_HOLDER、LONGARRAY_HOLDER、和lsxsd.lss 文件中定义的类似的类也可以为其他原生数据类型提供相同的功能。
Of course, string arrays are not the only kind of arrays you can accept or return. There are also INTEGERARRAY_HOLDER, LONGARRAY_HOLDER, and similar classes defined in the lsxsd.lss
与之相类似,PersistentVariableRandomTemplate可以用以执行一个随机访问的数组。
Similarly, the PersistentVariableRandomTemplate can be used to implement a randomly accessed array.
一个Simpli5对象和jQuery对象非常类似,也是一个元素数组,调用对象的方法实际上会调用这些元素的方法,例如,document.body.addClass('myclass')和$('div').addClass('myclass')实际上是将这个类加入到元素中去。
So document.body.addClass('myclass') and $('div').addClass('myclass') both add to the class of the elements.
类似地,所有对字符串和数组的访问在运行时被检查来确保他们没有越界,消除越界导致的内存重写和数据损坏的问题。
Similarly, all accesses to arrays and strings are checked at run-time to ensure that they are in bounds, eliminating the possibility of overwriting memory and corrupting data.
它定义了描述字符串、变长数组以及类似的结构体的语言。
It defines language to describe strings, variable-length arrays, and similar structures.
类似的助手方法用于大多数组件类型。
Similar helper methods are used for most types of components.
您可以创建九个单独的字符串变量,每个队员一个,或者声明一个类似于以下代码的数组变量。
You could create nine separate string variables, one for each player, or you could declare an array variable that looks something like the code below.
php具有一个类似的数组,包含了CHStats页面名称本身的本地化版本。
CHStats.aliases.php has a similar array containing the localized versions of the CHStats page name itself.
accumulate方法与put类似,区别在于它把值添加到按照键进行识别的索引数组。
The accumulate method is like put except that it appends its value to an indexed array identified by the key.
这些分隔符基本上创建了一个数据数组,类似于一个逗号分隔的列表。
These separators essentially create an array of data, similar to a comma-separated list.
类似地,在初始化数组或其他容器类型的元素的时候,也可能发生异常,同样,也要保证将会适当地撤销已构造的元素。
Similarly, an exception might occur when initializing the elements of an array or other container type. Again, we are guaranteed that the constructed elements will be destroyed.
类似于介入式容器,但需要额外的内存(如一个辅助数组)才能工作。
Similar to an intrusive container but a semi-intrusive container needs additional memory (e. g. an auxiliary array) to work.
应用推荐