循环字典的方法:mydict = {'a':1,'b':3}for key in mydict.keys(): print(key)for key in mydict.items(): print(key)for key in mydict: print(key,mydict[key])