擅长:python、mysql、java
<p>你说:</p>
<blockquote>
<p>Although I am sure that the status of the application is not None, the else clause is executed</p>
</blockquote>
<p>你发布的代码是:</p>
<pre><code>if app.status is None:
#do some thing
else:
#do another thing
</code></pre>
<p>如果<code>status</code>不是<code>None</code>,那么将执行else子句。在</p>
<p>我不明白第二个case是如何工作的,因为<code>else</code>子句也应该在这里执行。在</p>