擅长:python、mysql、java
<p><a href="http://docs.python.org/tutorial/errors.html#handling-exceptions" rel="noreferrer">Like the tutorial says.</a></p>
<pre><code>try:
something()
except SomeException as e:
something_else(e)
</code></pre>
<p>您可能会发现<a href="http://docs.python.org/library/traceback.html" rel="noreferrer">^{<cd1>}</a>很有用。在</p>