#coding=utf-8

#字典声明方式1
dict={}
dict[1] ='1-菜鸟教程'
dict[2] ='2-菜鸟教程'

#字典声明方式2

tinydict = {'name1':'rose','name2':'lily','site':'www.baidu.com'}

print(dict)
print(tinydict)

print(dict[1])

print(tinydict.keys()) #输出tinydict所有的键

print(tinydict.values()) #输出tinydict所有的值

