擅长:python、mysql、java
<p>您的问题是您试图显示数据,而不是显示<strong>python表示,如果该对象。在</p>
<p>所以它包含像u,L等元数据。
如果你想以你想要的方式显示数据,你应该写一个代码来处理它。在</p>
<p>例如:</p>
<pre><code>for row in cur.fetchall():
print u"'{row[0]}', '{row[1]}', '{row[2]}', '{row[3]}', '{row[4]}'".format(row=row)
</code></pre>
<p>所以它看起来像</p>
^{pr2}$
<p>但是。。。如我所见,你使结构看起来像CSV文件(逗号分隔值),是吗?所以,也许,你应该读一读csv python模块?在</p>