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

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.

主站蜘蛛池模板: 鹿泉市| 延长县| 高邑县| 福建省| 怀来县| 阿鲁科尔沁旗| 定边县| 满城县| 同仁县| 玉林市| 炉霍县| 曲阜市| 建德市| 崇仁县| 九龙城区| 夏邑县| 凭祥市| 黔南| 崇明县| 西华县| 宽甸| 丽江市| 云阳县| 商河县| 宁陵县| 延吉市| 裕民县| 贺兰县| 阳朔县| 钟祥市| 宜春市| 汉沽区| 罗田县| 巴彦淖尔市| 定结县| 莒南县| 玛多县| 绩溪县| 临邑县| 忻城县| 麟游县|