运算符
运算符分类

python3中地板除
>>> 8//3 #使用两个//就可以
2
算数运算符

赋值运算符

比较运算符

逻辑运算符

>>> 4 or print(5) and not print(6)
4
#print()也会输出,输出和返回值是独立的
>>> print(3) or not print(5) and print(4) and not print(6) or print(7) or 8
3
5
4
7
8
成员关系运算符


>>> a = 500
>>> b = 500
>>> a is b
False
>>> a = b = 500
>>> a is b
True
位运算符

运算符优先级











