首页->Python练习题
下面代码的输出结果是( ) d = {'a':1,'b':2,'c':3}; print(d['c'])
(A){‘c’:3}
(B)2
(C)3
(D)1
参考答案

更多Python练习题试题
- 1关于内置函数的应用,正确的是()。
- 2求100到200之间所有的素数的和。
- 3下面代码的输出结果是( ) L = [1,2,3,4,5] s1 =,.join(map(str,L))print(s1)
- 4下面代码的输出结果是( ) >>> True - False
- 5字符串是一个字符序列,例如,字符串s,从右侧向左第2个字符用什么索引? ( )。