下面代码的输出结果是( )。 s
=["seashell","gold","pink","brown","purple","tomato"] print(s[1:4:2])
A: ['gold',
'brown']
B: ['gold',
'pink', 'brown', 'purple', 'tomato']
C: ['gold',
'pink']
D: ['gold',
'pink', 'brown']
=["seashell","gold","pink","brown","purple","tomato"] print(s[1:4:2])
A: ['gold',
'brown']
B: ['gold',
'pink', 'brown', 'purple', 'tomato']
C: ['gold',
'pink']
D: ['gold',
'pink', 'brown']
举一反三
- 下面代码的输出结果是( )。 s<br/>=["seashell","gold","pink","brown","purple","tomato"] print(s[1:4:2]) A: ['gold',<br/>'brown'] B: ['gold',<br/>'pink', 'brown', 'purple', 'tomato'] C: ['gold',<br/>'pink'] D: ['gold',<br/>'pink', 'brown']
- 下面代码的输出结果是( )。 s<br/>=["seashell","gold","pink","brown","purple","tomato"] print(s[1:4:2]) A: ['gold',<br/>'brown'] B: ['gold',<br/>'pink', 'brown', 'purple', 'tomato'] C: ['gold',<br/>'pink'] D: ['gold',<br/>'pink', 'brown']
- 下面代码的输出结果是(<br/>)<br/>s =["seashell","gold","pink","brown","purple","tomato"]<br/>print(s[1:4:2]) A: ['gold',<br/>'pink', 'brown'] B: ['gold',<br/>'pink'] C: ['gold',<br/>'pink', 'brown', 'purple', 'tomato'] D: ['gold',<br/>'brown']
- 下面代码的输出结果是<br/>s =["seashell","gold","pink","brown","purple","tomato"]<br/>print(s[4:])<br/>A<br/>['purple']<br/>B<br/>['purple', 'tomato']<br/>C<br/>['gold', 'pink', 'brown', 'purple', 'tomato']<br/>D<br/>['seashell', 'gold', 'pink', 'brown'] A: ['purple'] B: ['purple', 'tomato'] C: ['gold', 'pink', 'brown', 'purple', 'tomato'] D: ['seashell', 'gold', 'pink', 'brown']
- 下面代码的输出结果是 s=["seashell","gold","pink","brown","purple","tomato"] [br][/br]pint(s[1:4:2]) A: ['gold' , 'pink' ,'brown',' purple',tomato' ] B: ['gold' , 'pink' ] C: ['gold' ,'brown'] D: ['gold' ,'pink',brown' ]