擅长:python、mysql、java
<p>要在列表的开头插入对象,可以使用<a href="http://docs.python.org/3.3/library/stdtypes.html?highlight=list#mutable-sequence-types" rel="nofollow">^{<cd1>}</a>。链接指向可变序列方法的文档,<code>list</code>是可变序列(与<code>str</code>相反,后者是序列但不是可变的)</p>
<pre><code>data = [[u'US-AL', 290060.0], [u'US-AK', 46400.0], [u'US-AZ', 320320.0]]
data.insert(0,('State','No of users'))
</code></pre>