首页->Python练习题
以下程序的输出结果是( ) x = ‘foo’ y = 2 print(x + y)
(A)foo
(B)foofoo
(C)foo2
(D)TypeError
参考答案

更多Python练习题试题
- 1执行后可以查看Python的版本的是( )。
- 2已知x=np.array([3,5,1,9,6,3]),表达式np.where(x>5,1,0).sum()的值为 2 。
- 3下面代码的输出结果是( ) >>> a,b,c,d,e,f = Python >>> b
- 4下面代码的输出结果是( )a = [1,3] b = [2,4] a.extend(b) print(a)
- 5下面代码的输出结果是( )。x = 12.34 ; print(type(x))