关系运算符包括 > < >= <= == != ,返回结果为一个布尔值(False / True)
In [38]: 1 > 2 Out[38]: False In [39]: 2 < 3 Out[39]: True In [40]: 1 >= 1 Out[40]: True In [41]: 2 <= 2 Out[41]: True In [42]: 2 == 2 Out[42]: True In [43]: 1 != 2 Out[43]: True
时间: 2024-10-19 06:06:30