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

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.

主站蜘蛛池模板: 古蔺县| 张家川| 花莲县| 沧州市| 长宁县| 满城县| 天峨县| 皮山县| 广平县| 永春县| 郧西县| 保靖县| 武隆县| 武隆县| 信丰县| 栖霞市| 诸暨市| 栖霞市| 广饶县| 洛阳市| 枝江市| 全南县| 广饶县| 乌兰浩特市| 马鞍山市| 法库县| 四子王旗| 鄂伦春自治旗| 榆社县| 江陵县| 常熟市| SHOW| 黄冈市| 满洲里市| 贡觉县| 嵊州市| 普安县| 呼玛县| 来宾市| 陵水| 宁海县|