比较运算符
== a == b
!= a != b
> a > b
< a < b
>= a >= b
<= a <= b
<> 判断是否不等于 a < > b 在python3里已经废弃,仅python2里可用
身份运算符
is 判断两个对象存储单元是否相同
is not 判断两个对象存储单元是否不同 a is not b
标签:判断,python,是否,运算符,存储单元,身份 From: https://www.cnblogs.com/qjb2404/p/16890909.html