字典dic1={‘宝藏1’:800, ‘宝藏2’ :1200, ‘宝藏3’ :2000, ‘宝藏4’ :300,‘宝藏5’ :500, ‘宝藏6’ :1000, ‘宝藏7’ :600} 下面哪个程序可输出如下的格式:宝藏1 800宝藏2 1200宝藏3 2000宝藏4 300宝藏5 500宝藏6 1000宝藏7 600
A. dic1={‘宝藏1’:800,’宝藏2’:1200, ‘宝藏3’:2000,’宝藏4’:300, ‘宝藏5’:500,’宝藏6’:1000}for d in dic1:print(d)
B. dic1={‘宝藏1’:800,’宝藏2’:1200, ‘宝藏3’:2000,’宝藏4’:300, ‘宝藏5’:500,’宝藏6’:1000}for d in dic1:print(dic1[d])
C. dic1={‘宝藏1’:800,’宝藏2’:1200, ‘宝藏3’:2000,’宝藏4’:300, ‘宝藏5’:500,’宝藏6’:1000}for d in dic1:print(d,dic1[d])
D. 以上都不对