Python中的关键字有

'false', 'none', 'true', 'and', 'as', 'assert', 'break', 'class', 'continue', 'def', 'del', 'elif', 'else', 'except', 'finally', 'for', 'from', 'global', 'if', 'import', 'in', 'is', 'lambda', 'nonlocal', 'not', 'or', 'pass', 'raise', 'return', 'try', 'while', 'with', 'yield'

1、global逻辑运算符

not、and、or为逻辑运算符

| 运算符 | 描述 | 备注 |
| | ----- |
| not | 非 | 相当于“反义词” |
| and | 和 | 条件同时为真,才可以是真 |
| or | 或 | 条件有一个为真,结果就为真 |
三个逻辑运算符的优先级为:

not > and > or