码迷,mamicode.com
首页 > 编程语言 > 详细

[python]Dictionary

时间:2016-06-05 12:23:56      阅读:126      评论:0      收藏:0      [点我收藏+]

标签:

A dictionary contains 1 to 1 mapping.

dict = {"key1":"value1", "key2":"value2"}

then we can simply refer the key to call corresponding value

var = dict["key1"]

 

[python]Dictionary

标签:

原文地址:http://www.cnblogs.com/lmliu/p/5560395.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!