7.比较运算符
2017-08-13 本文已影响0人
小灰辉先生
1>比较运算符
python中我们常用的比较运算符有哪些呢?
== 检查两个操作的数的值是不是相当
!=不想等
> 大于
<小于
>= 大于等于
<= 小于等于

2>逻辑运算符
and 和
or 或者
not 不是
一个一个看看哈
or

and

not

我就觉得这个对于上过大学哪怕是大专的人们来说其实高中生也很快就能明白的,毕竟这些东西在初中数学应该都学过的吧
1>比较运算符
python中我们常用的比较运算符有哪些呢?
== 检查两个操作的数的值是不是相当
!=不想等
> 大于
<小于
>= 大于等于
<= 小于等于
2>逻辑运算符
and 和
or 或者
not 不是
一个一个看看哈
or
and
not
我就觉得这个对于上过大学哪怕是大专的人们来说其实高中生也很快就能明白的,毕竟这些东西在初中数学应该都学过的吧