官术网_书友最值得收藏!

Dictionaries

A dictionary is an unordered collection of values, with each one accessed through a unique key. Let's look at the following diagram:

In our diagram, we have a dictionary of pizzas (keys) with their prices (values). To find something inside a dictionary, we must look it up according to its key. Let's look at a dictionary syntax:

Dictionary<Key, Value>

Now, that we understand what a dictionary is and its syntax let's look at how we can use it by creating our first dictionary.

主站蜘蛛池模板: 朝阳县| 都昌县| 怀柔区| 林西县| 仁布县| 太康县| 德惠市| 贡嘎县| 屯昌县| 宁波市| 渭源县| 昌邑市| 滦平县| 昌乐县| 华蓥市| 永平县| 玛曲县| 杭锦旗| 南昌县| 潼关县| 阿尔山市| 安岳县| 离岛区| 陈巴尔虎旗| 江口县| 积石山| 土默特左旗| 济南市| 凤凰县| 施秉县| 古浪县| 汝州市| 齐河县| 赤壁市| 孟津县| 嘉定区| 大石桥市| 昔阳县| 阿克| 沙田区| 徐闻县|