单项选择题
设有:color={1:"red",2:"green",3:"yellow"},则color.get(1)的值是()。
A."red"
B."green"
C."yellow"
D.语法错误
点击查看答案
相关考题
-
单项选择题
设有变量定义:s=set(’hello’+’!’),则表达式len(s)的值为()。
A.2
B.4
C.5
D.6 -
单项选择题
()不能生成一个空字典。
A.{}
B.dict()
C.dict([])
D.{[]} -
单项选择题
执行结果为[1,2,3,1,2,3,1,2,3]的表达式是()。
A.[1,2,3]+[1,2,3]
B.[’1’,’2’,’3’]+[’1’,’2’,’3’]+[’1’,’2’,’3’]
C.[1,2,3]**3
D.[1,2,3]*3
