擅长:python、mysql、java
<p>考虑这个例子:</p>
<pre><code>>>> L = ['a', 'b']
>>> 'a' not in L
False
>>> 'a' not in L == False
False
>>> ('a' not in L) == False
True
</code></pre>
<p>优先顺序使<code>L == False</code>优先。在</p>
<p>如果您想确定列表中是否有一项,只需<code>if c in letras_correctas:</code></p>