![](http://images2015.cnblogs.com/blog/1182370/201706/1182370-20170628210759774-266944364.jpg) [TOC] 字典是Python核心数据类型中唯一的一种映射类型, 通过键而不是相对位置来存取数据, 具有可变性.除了列表之外, 字典或许是Python最灵活的内置数据结构:-D ### 映射操作 1\. 作为常量编写, 字典编写与大括号`{}`中, 包含一系列的`键:值`对,并通过逗号`,`将不同的`键:值…