A: ['gold', 'pink', 'brown', 'purple', 'tomato']
B: ['purple']
C: ['purple', 'tomato']
D: ['seashell', 'gold', 'pink', 'brown']
举一反三
- 下面代码的输出结果是s =["seashell","gold","pink","brown","purple","tomato"]print(s[4:]) A: ['purple', 'tomato'] B: ['gold', 'pink', 'brown', 'purple', 'tomato'] C: ['seashell', 'gold', 'pink', 'brown'] D: ['purple']
- 下面代码的输出结果是s=["seashell","gold","pink","brown","purple","tomato"]print(s[4:]) A: ['gold', 'pink', 'brown', 'purple', 'tomato'] B: ['purple'] C: ['purple', 'tomato'] D: ['seashell', 'gold', 'pink', 'brown']
- 下面代码的输出结果是( ) 。s =["seashell","gold","pink","brown","purple","tomato"]print(s[4:]) A: ['gold', 'pink', 'brown', 'purple', 'tomato'] B: ['purple'] C: ['seashell', 'gold', 'pink', 'brown'] D: ['purple', 'tomato'] E: ['purple', 'tomato']
- 下面代码的输出结果是<br/>s =["seashell","gold","pink","brown","purple","tomato"]<br/>print(s[4:]) A: ['purple'] B: ['seashell', 'gold', 'pink', 'brown'] C: ['gold', 'pink', 'brown', 'purple', 'tomato'] D: ['purple', 'tomato']
- 下面代码的输出结果是<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']
内容
- 0
下面代码的输出<br/>结果是<br/>s<br/>=["seashell","gold","pink","brown","purple","tomato"]<br/>print(s[4:]) A: ['purple', 'tomato'] B: ['purple'] C: ['seashell', 'gold', 'pink', 'brown'] D: ['gold', 'pink', 'brown', 'purple', 'tomato']
- 1
下面程序的输出结果是()。 s=["seashell","gold","pink","brown","purple","tomato"] print(s[1:4:2]) A: ["gold","brown“] B: ["gold","pink","brown"] C: ["gold","pink"] D: s=["seashell","pink","brown","purple","tomato"]
- 2
下面代码的输出结果是( ) 。s =["seashell","gold","pink","brown","purple","tomato"]print(s[1:4:2]) A: ['gold', 'pink'] B: ['gold', 'brown'] C: ['gold', 'pink', 'brown', 'purple', 'tomato'] D: ['gold', 'pink', 'brown']
- 3
下面代码的输出结果是s =["seashell","gold","pink","brown","purple","tomato"]print(s[1:4:2]) A: ['gold', 'pink', 'brown', 'purple', 'tomato'] B: ['gold', 'pink'] C: ['gold', 'brown'] D: ['gold', 'pink', 'brown']
- 4
下面代码的输出结果是( )。 s=("seashell","gold","pink","brown","purple","tomato") print(s[1::2]) A: ("seashell","pink","tomato") B: ("seashell","gold","pink","brown","purple","tomato") C: ('gold', 'brown' ) D: ('gold', 'brown', 'tomato')