python里x.pow2
Python math.pow()方法 (Python math.pow() method)
math.pow() method is a library method of math module, it is used to calculate the given power of a base, it accepts two numbers and returns the first number to the power of the second number in the float.
math.pow()方法是数学模块的库方法,用于计算基数的给定幂,它接受两个数字并将第一个数字返回为浮点数中第二个数字的幂。
Syntax of math.pow() method:
math.pow()方法的语法:
math.pow(a, b)
Parameter(s): a, b – the numbers whose power needs to be calculated (Here, a is the base and b is the power to calculate the result a