<p>我试图在Python中的if语句中设置多个条件,如下所示:</p>
<pre><code>if (h9 == h1 or h9 == h2 or h9 == h3 or h9 == h4 or h9 == h5 or h9 == h6 or h9 == h7 or h9 == h8) and (h10 == h1 or h10 == h2 or h10 == h3 or h10 == h4 or h10 == h5 or h10 == h6 or h10 == h7 or h10 == h8) :
do sth.
</code></pre>
<p>基本上这是同时满足<code>h9</code>和<code>h10</code>的条件
但是,这不起作用,并且会产生如下错误:</p>
<blockquote>
<p><code>IndentationError: unindent does not match any outer indentation level</code></p>
</blockquote>
<p>怎么了?</p>