执行如下操作后输出结果为:____________ s =[ "seashell" , "gold" , "pink" , "brown" , "purple" , "tomato"] print(s[1:4:2])
时间: 2024-01-13 09:02:55 浏览: 143
seashell_project
执行如下操作后输出结果为:"['gold', 'brown']"。
```python
s = ["seashell", "gold", "pink", "brown", "purple", "tomato"]
print(s[1:4:2]) # 输出:['gold', 'brown']
```
阅读全文