擅长:python、mysql、java
<p>你可以用列表.插入(参考:<a href="http://docs.python.org/2/tutorial/datastructures.html" rel="nofollow">http://docs.python.org/2/tutorial/datastructures.html</a>)</p>
<p><strong>列表.插入(i,x)</strong>
在给定位置插入项目。第一个参数是要插入的元素的索引,因此a.insert(0,x)在列表的前面插入,而a.insert(len(a),x)等价于a.append(x)。你知道吗</p>
<pre><code>a.insert(0,0)
</code></pre>