单目操作符(unary operator)是通过在关键字operator后跟单目运算符符号来命名的。
A unary operator is named by using the key word operator followed by the unary operator symbol.
清单 3 中的示例显示可以如何将此操作符与 ! $ 运算符组合使用。
The example in Listing 3 shows how you can use this operator in combination with the !$ operator.
所以这是相等操作符,然而那个单等号是一个赋值运算符。
So this is the equality operator, whereas the single equal sign is the assignment operator.
So this is the equality operator, whereas the single equal sign is the assignment operator.
所以这是相等操作符,然而那个单等号是一个赋值运算符。
And in Python the expression is, operand, operator, operand, when we're doing simple expressions like this, and if I give it to the interpreter, it gives me back exactly what you'd expect, which is that value. OK?
在Python中表达式就是,运算对象,操作符,运算对象,当我们处理这样的简单表达式的时候,我把表达式传给处理器,处理器给我返回了我想要的结果,对不对?
应用推荐