擅长:python、mysql、java
<blockquote>
<p>The <code>^</code> operator yields the bitwise XOR (exclusive OR) of its arguments, which must be integers.</p>
</blockquote>
<p><a href="https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations" rel="nofollow noreferrer">https://docs.python.org/3/reference/expressions.html#binary-bitwise-operations</a></p>
<p>与所有其他<code>_=</code>运算符一样,<code>^=</code>将结果赋回变量:<code>a =^ b</code>与<code>a = a ^ b</code>相等。在</p>
<p>作为一个函数,它是<code>__ixor__</code>(或<a href="https://docs.python.org/3/library/operator.html" rel="nofollow noreferrer">^{<cd6>}</a>),对于非整数类型可能有不同的行为。在</p>