dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}print("dict['Name']:%s"%dict['Name'])
A.dict['Name']
B.dict['Name']:Zara
C.Zara
D.dict['Name']:dict[Name]
dic = {'a':1,'b':2,'c':3}for key in dict: print(dict[key], end=" ")上述程序的输出结果是
A.1 2 3
B.a b c
C.'1' '2' '3'
D.'a' 'b' 'c'
dic = {'a':1,'b':2,'c':3}for k,v in dic.items(): print("dict[{""}] = {}".format(k,v), end= ",")上述程序的输出结果是
A.dict[a] = 1,dict[b] = 2,dict[c] = 3,
B.1,2,3
C.dict[a] = 1,dict[b] = 2,dict[c] = 3
D.{'a':1, 'b':2, 'c':3}