逻辑运算简述

wdg - May 27, 2024

异或 XOR exclusive OR

a b a⊕b
0 0 0
0 1 1
1 0 1
1 1 0

a⊕b = (¬a ∧ b) ∨ (a ∧¬b)

符号 含义 英文
¬ not
and
or