The simple answer is that Python converts all operands in an expression to the type of the most complex operand, as necessary.
简单的答复是,Python会根据需要将表达式中的所有操作数转换为最复杂的操作数的类型。
For the athrow instruction, you use FindBugs' OpcodeStack helper class to learn the type of the operand of athrow.
对于athrow指令,可以使用FindBugs的Op codeStack帮助器类来了解athrow操作数的类型。
The type of the operand (s) determine whether an expression is legal and, if the expression is legal, determines the meaning of the expression.
表达式是否合法取决于操作数的类型,而且合法的表达式其含义也由其操作数类型决定。
Additional assignment operators that differ by the type of the right-hand operand can be defined for a class type.
可以为一个类定义许多附加的赋值操作符,这些赋值操作符会因右操作符类型不同而不同。
For a type conversion operator, either the operand or the return type must be of the data type of the class or structure.
对于类型转换运算符,操作数或返回类型必须是类或结构的数据类型。
A programming pattern that checks the type of an operand and invokes different functions for different types.
按类型处理:一种编程模式,检查运算数的类型,然后根据类型调用不同的函数来进行运算。
Comparisons are then made by evaluating each operand, and converting them as needed, so they are of the same type.
比较的过程是计算每个操作数,然后根据需要将操作数转换为相同的类型。
The dot operator applies only to objects of class type: the left-hand operand must be an object of class type; the right-hand operand must name a member of that type.
点操作符仅应用于类类型的对象:左操作数必须是类类型的对象,右操作数必须指定该类型的成员。
The result of the unary - operator is the negative of its (promoted) operand. The integer promotions are performed on the operand, and the result has the promoted type.
因此减号操作符的运算结果类型依赖于操作数被提升之后的类型。
The result of the unary - operator is the negative of its (promoted) operand. The integer promotions are performed on the operand, and the result has the promoted type.
因此减号操作符的运算结果类型依赖于操作数被提升之后的类型。
应用推荐