擅长:python、mysql、java
<p>在代码<code>status = row[6]</code>中重新分配<code>status</code>,这样它就不再是dict了,要么为dict使用另一个名称,要么更改循环中的状态,只是不要同时使用它。在</p>
<pre><code>status = {} # starts as a dict
status = row[6] # now the name status points to something else i.e a str
</code></pre>