返回顶部

收藏

Defining Dictionaries: shows an example of a dictionary definition.

更多
d = {'A':'a', 'B':'b'}     
print d 

print d['A']                                        

print d['B']                                      

标签:Python,Dictionary

收藏

0人收藏

支持

0

反对

0

»更多 您可能感兴趣的代码
  1. 2016-01-10 09:34:59If it has a certain key by 张宋付
  2. 2016-02-05 11:12:31Dictionary popitem by xwz
  3. 2016-08-18 16:39:08Dictionary: The keys, values, and items Functions by xwz
  4. 2016-08-31 12:28:03Dictionary has_key method by 山药
  5. 2016-11-25 12:18:57For loop through the dictionary keys by 阮小七
  6. 2016-12-02 09:02:20Update a dictionary by 山药
  7. 2016-08-18 16:51:15Use variable as a key by 阿明娃儿
  8. 2016-08-18 17:03:11Looping through dictionaries by wubai
  9. 2016-08-18 17:08:49for each loop with dictionary by 司马
  10. 2016-11-16 19:05:03Add new entry to a dictionary by 蟋蟀MM
  11. 2019-06-17 21:18:10PHP+jQuery.photoClip.js图片裁剪上传实例 by 素材火官网

发表评论