以下程序执行结果是:str="108F"print(str[-1]in['f','F'])
A: True
B: False
C: 1
D: 0
A: True
B: False
C: 1
D: 0
举一反三
- 以下程序的输出结果是: L1 =['abc', ['123','456']] L2 = ['1','2','3'] print(L1 > L2) A: TypeError: '>' not supported between instances of 'list' and 'str' B: False C: True D: 1
- 如下程序的输出结果是:L1 =[‘abc’, [‘123’,‘456’]]L2 = [‘1’,‘2’,‘3’]print(L1 >; L2) A: False B: TypeError: ‘>;’ not supported between instances of ‘list’ and ‘str’ C: 1 D: True
- 以下代码的输出结果是(_____)。L1 =['abc', ['123','456']] L2 = ['1','2','3'] print(L1 > L2) A: False B: True C: TypeError: '>' not supported between instances of 'list' and 'str' D: 1
- 下列语句的执行结果是40。x=[4,0,7]y=str(x[0])+str(x[1])print(y)
- float f[][][] = new float[3][][]; float f0 = 1.0f; float[][] farray = new float[1][1]; What is valid?() A: f[0] = f0; B: f[0] = farray; C: f[0] = farray[0]; D: f[0] = farray[0][0];