乘法和除法运算符(表 3 中列出的前四个)具有高于加法和减法的优先级。
The multiplication and division operators (the first four listed in Table 3) have higher precedence than the addition and subtraction operators.
例如,您期望乘法的优先级比加法高。
You would expect multiplication, for example, to have a higher precedence than addition.
乘法和除法的优先级高于加法操作,于是它们的操作数先于加法操作的操作数计算。
Multiplication and division have higher precedence than addition. Their operands are bound to the operator in preference to the operands to addition.
And so, in fact, if I wanted the other version of it, in fact, if I do this right, 23 it's going to give me 23 because it does the multiplication first, if I wanted the other version of it, Python I need to tell it that, by using, excuse me, parentheses.
因此,实际上,如果我想换种做法,实际上,如果我去执行这个表达式,返回值是3,因为乘法会被优先执行,如果我需要换种做法,我需要告诉,用括号来告诉它。
应用推荐