标准类型运算符和内建函数
Operator/Function | Dscription | Result |
String | ||
`` | String representation | st |
Built-in functions | ||
cmp(obj1,obj2) | Compares two objects | in |
repr(obj) | String representation | st |
str(obj) | String representation | st |
type(obj) | Determines object type | typ |
Value comparisons | ||
< | Less than | boo |
> | Greater than | boo |
<= | Less than or equal to | boo |
>= | Greater than or equal to | boo |
== | Equal to | boo |
!= | Not equal to | boo |
<> | Not equal to | boo |
Object comparisons | ||
is | The same as | boo |
is not | Not the same as | boo |
Boolean operators | ||
not | Logical negation | boo |
and | Logical conjunction | boo |
or | Logical disjunction | boo |