You create a dictionary in Vimscript by using curly braces around a list of key/value pairs.
您可以通过在键/值对列表上加花括号来创建一个字典。
Moreover, any Lua value — including a function or another table — can serve as a dictionary element key.
另外,任何lua值——包括函数或其他表——都可以用作字典元素的键值。
The XSLT style sheet indexes into the dictionary, finds the key that matches the value of the nlsid attribute, matches the current language in the dictionary, and retrieves the translated text.
xslt样式表为字典编制索引、查找与nlsid属性值匹配的密钥、与字典中的当前语言匹配并检索已翻译的文本。
The service property will serve as a key into the service_templates dictionary, and the username will be used with that value to calculate a URL.
服务属性将用作service _ templates字典中的关键字,而用户名将与该值结合使用以计算url。
Therefore, to determine if a value is a key within a dictionary, you use the in operator to test whether the key is in the list of key values returned by calling the keys method.
因此,要判断某个值是否是dictionary中的键,应该使用in操作符检查这个值是否在调用keys方法所返回的键值列表中。
A dictionary is like an associative array or hash: It USES key-value pairs to store and retrieve information.
字典类似于关联数组或散列;它使用键值对来存储和限制信息。
The first attempt at creating a dictionary from a list fails because there are no matching key-data value pairs.
第一次从list创建dictionary的尝试失败了,这是因为没有匹配的键-数据值对。
An associative array, sometimes referred to in other languages as a dictionary or a hash, is a list of key-value pairs, with the key and value being separated by a colon (:).
联合数组在其他语言中有时称为词典(dictionary)或hash表,它是一系列关键字-值对,关键字和值使用冒号(:)分隔开。
This makes sense because you generally want to know whether a data value — rather than a key value — is in a dictionary.
这是有意义的,因为一般希望知道某个数据值(而不是键值)是否在dictionary中。
Using one key-value combination gives a single-item dictionary, and so on, to whatever size you desire.
使用一个键-值组合,就会创建具有一个元素的 dictionary,以此类推,直至您需要的任何规模。
As this example demonstrates, a dictionary is created in Python by using curly braces, with key-value combinations separated by the colon character.
如这个例子所示,在Python中创建dictionary要使用花括号和以冒号分隔的键-值组合。
The dictionary is a heterogeneous, mutable container that relies on a key-to-data value mapping, rather than a particular numerical order to access items from the container.
dictionary是一种异构的、易变的容器,依赖键到数据值的映射(而不是特定的数字次序)来访问容器中的元素。
When you're using a dictionary in your Python program, you'll more likely to want to test whether a particular key or value is contained in your dictionary.
在Python程序中使用dictionary时,很可能希望检查dictionary中是否包含特定的键或值。
An object that appears in a dictionary as the second part of a key-value pair. This is more specific than our previous use of the word "value".
键值:字典中的一个对象,键值对的第二部分。这个和之前提到的值不同,在字典使用过程中指代的是键值,而不是数值。
Neither a key nor a value can be null (if a null value in a dictionary is required, use "NSNull" instead).
密钥或值可能是null(如果需要字典中的null值,请使用NSNull替代)。
You need to obtain a value from a dictionary, without having to handle an exception if the key you seek is not in the dictionary.
你需要从字典中获得一个值,不要处理在字典里找不到你所需要的键值的异常。
The dictionary class is very similar to an associative array, however a bit more powerful. The dictionary allows you to create maps based on complex objects as the keys for the key-value pair.
字典类和索引数组非常类似,当然字典类更加强大,字典允许你使用复杂的类作为键。
If a key is specified both in the positional argument and as a keyword argument, the value associated with the keyword is retained in the dictionary.
如果一个键同时被指定位置参数和作为一个关键字参数,与其关键字相关的值被保留在dict中。
If a key is specified both in the positional argument and as a keyword argument, the value associated with the keyword is retained in the dictionary.
如果一个键同时被指定位置参数和作为一个关键字参数,与其关键字相关的值被保留在dict中。
应用推荐