Update 01. 变量、运算符与数据类型.md

This commit is contained in:
LSGOMYP
2020-07-20 10:09:49 +08:00
parent 2867f073e5
commit deb0a1eef0

View File

@@ -194,7 +194,7 @@ print(a is not b, a != b) # True False
<b>运算符的优先级</b>
- 一元运算符优于二元运算符。例如`3 ** -2`等价于`3 ** (-2)`
- 先算术运算,后移位运算,最后位运算。例如 `1 << 3 + 2 & 7`等价于 `1 << (3 + 2)) & 7`
- 先算术运算,后移位运算,最后位运算。例如 `1 << 3 + 2 & 7`等价于 `(1 << (3 + 2)) & 7`
- 逻辑运算最后结合。例如`3 < 4 and 4 < 5`等价于`(3 < 4) and (4 < 5)`
【例子】