擅长:python、mysql、java
<p>首先,修复你的压痕。你没有得到任何错误,因为你明确地让他们闭嘴!与</p>
<pre><code>except Exception, e:
# Catch any unicode errors while printing to console
# and just ignore them to avoid breaking application.
pass
</code></pre>
<p>这将捕获<code>try: except:</code>块中发生的任何</strong>异常。阅读Python教程是一个<a href="http://docs.python.org/tutorial/errors.html" rel="nofollow">good start to learn more about exceptions.</a></p>