介绍三种访问字典的方法
定义字典 dic = {'a':"hello",'b':"how",'c':"you"} 方法一: 复制 for key in dic: print key,dic[key] print key + str(dic[key...
定义字典 dic = {'a':"hello",'b':"how",'c':"you"} 方法一: 复制 for key in dic: print key,dic[key] print key + str(dic[key...