#!/usr/bin/python3
 
d = {}
d['one'] = "1 - 菜鸟教程"
d[2]     = "2 - 菜鸟工具"
 
tinydic= {'name': 'runoob','code':1, 'site': 'www.runoob.com'}
 
 
print (d['one'])       # 输出键为 'one' 的值
print (d[2])           # 输出键为 2 的值
print (tinydic)          # 输出完整的字典
print (tinydic.keys())   # 输出所有键
print (tinydic.values()) # 输出所有值
