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

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.

主站蜘蛛池模板: 兰溪市| 沧州市| 承德市| 华容县| 平顺县| 磐石市| 白河县| 柘荣县| 新蔡县| 乌兰浩特市| 永州市| 黄浦区| 惠水县| 河南省| 鄂托克旗| 肥城市| 安西县| 淅川县| 黑龙江省| 九台市| 凤凰县| 旬阳县| 延寿县| 祁阳县| 拉萨市| 庐江县| 远安县| 兴义市| 普洱| 德清县| 徐州市| 宜阳县| 巴南区| 乌兰县| 德惠市| 墨江| 汽车| 台湾省| 昂仁县| 陆丰市| 巢湖市|