它的基本格式是(key是键,value是值):
d = {key1 : value1, key2 : value2 }
Example
dir = {'Mic':1,'Sun':2} for k in dir: print ('Key:',k,' Value:',dir[k])