python笔记_3_运算符
1、算术运算符
**幂 //整除
2、赋值运算符
&=,|=,^=,>>=,<<=
3、逻辑运算符
and x>3andx<10
or x>3orx<4
not not(x>3andx<10)
4、身份运算符
具有相同的内存位置is、is not
x is not y
5、成员运算符
测试序列是否在对象中出现in、not in
6、位运算符
&,|,^,~(反转所有),<<,>>
**幂 //整除
&=,|=,^=,>>=,<<=
and x>3andx<10
or x>3orx<4
not not(x>3andx<10)
具有相同的内存位置is、is not
x is not y
测试序列是否在对象中出现in、not in
&,|,^,~(反转所有),<<,>>