通过综合切片知识以及如何修改list的知识,您应该已经获得了非常重要的见识:可以通过多种方式修改列表。
By combining what you know about slicing with the knowledge that a list can be modified, you've gained a significant insight: you can modify a list in a number of ways.
所以如果你把两个都省略了,这个切片就是整个列表的一个复制了。
我可以使用切片方法返回在原始列表中的列表不包括范围?
Can I use the slice method to return a list that excludes ranges in the middle of the original list?
应用推荐