dict={1:1,2:'aa','D':'ee','Ty':45}foritemindict.items():print(item)
查看答案
dict={1:1,2:'aa','D':'ee','Ty':45}forkey,valueindict.items():print(key,value)
dict={1:1,2:'aa','D':'ee','Ty':45}forkeyindict.keys():print(key)
dict={1:1,2:'aa','D':'ee','Ty':45}forkeyindict.keys():print(value)