author:咔咔
wechat:fangkangfk
x && y | 與 | 若是 x 和 y 都爲 true,則返回 true | x=6 y=3 (x < 10 && y > 1) 返回 true |
x || y | 或 | 若是 x 和 y 至少有一個爲 true,則返回 true | x=6 y=3 (x==5 || y==5) 返回 false |
! x | 非 | 若是 x 不爲 true,則返回 true | x=6 y=3 !(x==y) 返回 true |
x && y | 與 | 若是 x 和 y 都爲 true,則返回 true | x=6 y=3 (x < 10 && y > 1) 返回 true |
x || y | 或 | 若是 x 和 y 至少有一個爲 true,則返回 true | x=6 y=3 (x==5 || y==5) 返回 false |
! x | 非 | 若是 x 不爲 true,則返回 true | x=6 y=3 !(x==y) 返回 true |