You create a dictionary in Vimscript by using curly braces around a list of key/value pairs.
您可以通过在键/值对列表上加花括号来创建一个字典。
To add an entry to a dictionary, just assign a value to a new key.
将一个条目添加到字典中,只需要对新的键赋一个值。
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属性值匹配的密钥、与字典中的当前语言匹配并检索已翻译的文本。
So it doesn't matter how big the dictionary is, you can instantaneously retrieve the value associated with the key. Extremely powerful.
因为你可以在线性时间,内得到想要的键对应的值,这太强大了。
Remember the way dictionary works, this is the key. Is the key of a value.
记住这个字典的工作原理,这是关键,它是值的关键。
应用推荐