擅长:python、mysql、java
<p><code>slicing</code>用于提取列表的<code>sublist</code>,其中as<code>indexing</code>用于检索列表的特定元素</p>
<p><code>slicedList = aList[beginIndex:endIndex]</code></p>
<p><code>d[1:]</code>表示对列表进行切片<code>d</code>-引用<a href="http://techearth.net/python/index.php5?title=Python%3aBasics%3aSlices" rel="nofollow">this</a>。-这是切片</p>
<p><code>c[1]</code>是列表<code>c</code>的一个元素。-这是索引</p>