代码a=[1,2,3,4,5],以下输出结果正确的是( )。
A: print(a[:])=>[1,2,3,4]
B: print(a[0:])=>[2,3,4,5]
C: print(a[:100])=>[1,2,3,4,5]
D: print(a[-1:])=>[1,2]
A: print(a[:])=>[1,2,3,4]
B: print(a[0:])=>[2,3,4,5]
C: print(a[:100])=>[1,2,3,4,5]
D: print(a[-1:])=>[1,2]
举一反三
- >>>x= [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9]>>>print(x.sort()) 语句运行结果正确的是( )。 A: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10] B: [10, 6, 0, 1, 7, 4, 3, 2, 8, 5, 9] C: [10, 9, 8, 7, 6, 5, 4, 3, 2, 1, 0] D: ['2', '4', '0', '6', '10', '7', '8', '3', '9', '1', '5']
- 将下列化合物按极性大小排列顺序:(1)CH4 (2)CH3F (3)CH3Cl (4 )CH3Br (5)CH3I A: (1)>(2)>(3)>(4)>(5) B: (5)>(4)>(3)>(2)>(1) C: (2)>(3)>(4)>(5)>(1) D: (3)>(4)>(5)>(1)>(2)
- >>>x = [1, 2, 2, 3, 3, 3, 4, 4, 4, 4]>>>x.index(2) 语句运行结果正确的是( )。 A: 1 B: 2 C: 3 D: 4
- 将下列化合物按碱性由强到弱排序:( )<br/>(1)二乙胺 (2)苯胺 (3)对甲基苯胺 (4)氨 (5)对硝基苯胺 A: (1)>(4)>(3)>(2)>(5) B: (2)>(4)>(3)>(1)>(5) C: (3)>(2)>(1)>(4)>(5) D: (1)>(2)>(3)>(4)>(5)
- 代码 a = [ 1,2,3,4,5 ],以下输出结果正确的是? A: print(a[:]) => [1,2,3,4] B: print(a[0:]) => [2,3,4,5] C: print(a[:100]) => [1,2,3,4,5] D: print(a[-1:]) => [1,2]