给定字典dict1,以下选项中对x in dict1的描述正确的是()
(A)判断x是否是在字典dict1中以键或值方式存在
(B) 判断x是否是字典dict1中的值
(C) x是一个二元元组,判断x是否是字典dict1中的键值对
(D) 判断x是否是字典dict1中的键
参考答案
继续答题:下一题


更多Python编程试题
- 1下列程序的输出结果是:
- 2、使用OpenGL 画图时,画点是最基本的操作, 具体生成的图形由glBegin() 函数指定的mode 来决定。例如,mode值为GL_TRIANGLES 时表示将要绘制三角形
- 3以下选项中,不属于函数的作用的是()
- 4S和T是两个集合,对S&T的描述正确的是()
- 5What gets printed?( )x = Truey = Falsez = Falseif not x or y:print 1elif not x or not y and z:print 2elif not x or y or not y and x:print 3else:print 4