對表達(dá)式執(zhí)行邏輯非運(yùn)算。
result = Not expression
result
任意數(shù)值變量。
expression
任意表達(dá)式。
下表顯示如何確定 result 的值:
如果 expression 為 | 則 result 為 |
---|---|
True | False |
False | True |
Null | Null |
此外,Not 運(yùn)算符將變量的位取反,并按下表設(shè)置 result 的相應(yīng)位:
expression 中的位 | result 中的位 |
---|---|
0 | 1 |
1 | 0 |
新聞熱點(diǎn)
疑難解答
圖片精選