We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b9872ed commit 15c1cc3Copy full SHA for 15c1cc3
1 file changed
111.md
@@ -70,6 +70,8 @@
70
['2', 3] #不包含结束位置
71
>>> a[1:]
72
[3, 'qiwsir.github.io']
73
+ >>> a[2][7:13] #可以对列表元素做2次切片
74
+ 'github'
75
76
list和str两种类型的数据,有共同的地方,它们都属于序列(都是一些对象按照某个次序排列起来,这就是序列的最大特征),因此,就有很多类似的地方。如刚才演示的索引和切片,是非常一致的。
77
0 commit comments