关系运算符(Relational Operators)

关系运算符(Relational Operators) 也叫 比较运算符(Comparison Operators)

Operator Meaning Syntax Example
== 等于(Equal to) a == b
!= 不等于(Not equal to) a != b
> 大于(Greater than) a > b
>= 大于或等于(Greater than or equal to) a >= b
< 小于(Less than) a < b
<= 小于或等于(Less than or equal to) a <= b

优先级从上到下依次递减

results matching ""

    No results matching ""