Main Content

本页翻译不是最新的。点击此处可查看最新英文版本。

字典

使用对值进行索引的键映射数据

字典是一种将每个键与对应的值相关联的数据结构体。键和值可以采用任何数据类型,为数据访问提供优于数组索引的灵活性,并能提高性能。

函数

dictionaryObject that maps unique keys to values
entriesKey-value pairs of dictionary
keysKeys of dictionary
valuesValues of dictionary
typesTypes of dictionary keys and values
numEntriesNumber of key-value pairs in dictionary
isConfiguredDetermine if dictionary has types assigned to keys and values
isKeyDetermine if dictionary contains key
keyHashGenerate hash code for dictionary key
keyMatchDetermine if two dictionary keys are the same

主题