The following tokens are operators:
以下符号是运算符:
+ - * ** / // % << >> & | ^ ~ < > <= >= == != <>
The comparison operators <>
and !=
are alternate
spellings of the same operator. !=
is the preferred spelling;
<>
is obsolescent.
比较运算符<>和!=是可选的两个具有相同含义的符号. 但推荐使用!=, <>是过时的写法.