要输出结果为: ['purple', 'tomato'] [br][/br]下面代码的 ① 处应填写[br][/br] [br][/br]s =["seashell","gold","pink","brown","purple","tomato"][br][/br] print( ① )
A: ['purple']
B: s=['purple', 'tomato']
C: s[4:]
D: s[5:]
A: ['purple']
B: s=['purple', 'tomato']
C: s[4:]
D: s[5:]
举一反三
- 下面代码的输出结果是<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']
- 下面代码的输出<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']
- 下面代码的输出结果是<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']
- 下面代码的输出结果是()。 s<br/>=["seashell","gold","pink","brown","purple","tomato"] print(len(),min(),max()) A: 6<br/>seashell gold B: 5<br/>purple tomato C: 5<br/>pink brown D: 6<br/>brown tomato
- 下面代码的输出<br/>结果是 s<br/>=["seashell","gold","pink","brown","purple","tomato"] print(len(s),min(s),max(s)) A: 6 seashell gold B: 6 brown tomato C: 5 pink brown D: 5 purple tomato