下面代码的输出结果是() s =[“seashell”,“gold”,“pink”,“brown”,“purple”,“tomato”] print(s[1:4:2])
(A)[‘gold’, ‘pink’, ‘brown’]
(B)[‘gold’, ‘pink’]
(C)[‘gold’, ‘pink’, ‘brown’, ‘purple’, ‘tomato’]
(D)[‘gold’, ‘brown’]
参考答案
继续答题:下一题
(A)[‘gold’, ‘pink’, ‘brown’]
(B)[‘gold’, ‘pink’]
(C)[‘gold’, ‘pink’, ‘brown’, ‘purple’, ‘tomato’]
(D)[‘gold’, ‘brown’]