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