| Operator |
Description |
| Lambda |
Lambda expressions |
| Or |
Boolean "or" |
| And |
Boolean "and" |
| Not x |
Boolean "Non" |
| In, not in |
Member Testing |
| Is, is not |
Identity Test |
| <, <=,>, >= ,! =, = |
Comparison |
| | |
By bit or |
| ^ |
Bitwise OR |
| & |
Bitwise AND |
| <,> |
Shift |
| + ,- |
Addition and subtraction |
| *,/, % |
Multiplication, division, and remainder |
| + X,-x |
Plus or minus sign |
| ~ X |
Flip by bit |
| ** |
Index |
| X. attribute |
Attribute reference |
| X [index] |
Subscript |
| X [index: index] |
Addressing segment |
| F (arguments ...) |
Function call |
| (Experession ,...) |
Bind or display tuples |
| [Expression,...] |
List display |
| {Key: datum ,...} |
Dictionary display |
| 'Expression ,...' |
String Conversion |
The priority is the highest priority on the smallest side, from bottom to top. If you do not believe it, you can run the following code to confirm the priority.
True = True
False = False
If not false or true:
Print "yes"
Else:
Print "no"
##
# Ture or false => true
# False or false => false
# Ture or ture => true
# If it is not before or, true or yes will be returned
# If it is first or not, then it will certainly return false, that is, no,
# But the result outputs yes, which proves to be not first or