也就是说,它们会改变运算对象,而不仅仅是使用自己的值。
That is, they change the operand rather than using just its value.
除此以外,一个运算符可改变运算对象的值,这叫作“副作用”。
In addition, an operator can change the value of an operand. This is called a side effect.
这里的语法应该是好的,有个运算对象,一个运算符,另外一个运算对象,因此语法上是没错的。
The syntax is OK in the sense of, it is an operand, an operator, an operand, so syntactically it's OK.
The syntax is OK in the sense of, it is an operand, an operator, an operand, so syntactically it's OK.
这里的语法应该是好的,有个运算对象,一个运算符,另外一个运算对象,因此语法上是没错的。
I just want to remind you, if I wanted to, for example, type in an expression like that, notice the syntactical form, it's an expression, a number, followed by an operand, followed by another expression.
我想要提醒下大家,如果你想要,例如,输入一个这样的表达式,注意语法形式,这是个表达式,一个数字,后面是一个运算对象,后面是另外一个表达式。
It caught the error, because it checked the types of the operands before it applied things and it says, I'm going to stop.
它捕捉到了错误,因为它在,进行运算之前检查了运算对象的类型,然后Python意识到,应该停止了。
应用推荐