以下对于字符串的相关操作,正确的输出结果是哪些选项?
A: >>> 'Life is short, you need Python.'.find('you')
15
B: >>> seq = [1, 2, 3, 4];
>>> sep = '+';
>>> sep.join(seq)
'1+2+3+4'
C: >>> print('{:5.3f}'.format(math.pi))
3.1416
D: >>> print('you' in 'Life is short, you need Python.')
True
A: >>> 'Life is short, you need Python.'.find('you')
15
B: >>> seq = [1, 2, 3, 4];
>>> sep = '+';
>>> sep.join(seq)
'1+2+3+4'
C: >>> print('{:5.3f}'.format(math.pi))
3.1416
D: >>> print('you' in 'Life is short, you need Python.')
True
举一反三
- 下列碳正离子的稳定性顺序是:( ) A: (1) > (2) > (3) > (4) B: (2) > (4) > (3) > (1) C: (1) > (3) > (2) > (4) D: (2) > (4) > (1) > (3)
- 将下列化合物按极性大小排列顺序:(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)
- 化合物(1)苯、(2)呋喃、(3)吡咯、(4)噻吩分别发生亲电取代反应的活性次序是() A: (1)>(2)>(3)>(4) B: (2)>(1)>(3)>(4) C: (3)>(2)>(4)>(1) D: (4)>(3)>(2)>(1)
- 比较下列化合物的碱性强弱(1)脲(2)乙酰胺(3)乙胺(4)丙二酰脲 A: (1)>(2)>(3)>(4) B: (2)>(4)>(3)>(1) C: (3)>(1)>(2)>(4) D: (4)>(2)>(3)>(1)
- 下列物质(1) CaO;(2) MgO;(3) NH3;(4) PH3熔点由高到低的顺序为:( ) A: (1) > (2) > (3) > (4) B: (1) > (2 ) > (4 ) > (3) C: (2) > (1) > (4) > (3) D: (2 ) > (1) > (3 ) > (4 )