1.有三个布尔操作:
not, and, or
2. 优先级
not
is evaluated first;and
is evaluated next;or
is evaluated last.
例子:
1. 在console输入:
not not True or False and not True
输出是:True
2. 在console输入:
(not not True or False) and not True
输出是:False
1.有三个布尔操作:
not, and, or
2. 优先级
not
is evaluated first;and
is evaluated next;or
is evaluated last.例子:
1. 在console输入:
not not True or False and not True
输出是:True
2. 在console输入:
(not not True or False) and not True
输出是:False