题解 | #数值的整数次方#
数值的整数次方
http://www.nowcoder.com/practice/1a834e5e3e1a4b7ba251417554e07c00
使用乘方运算符
class Solution:
def Power(self , base: float, exponent: int) -> float:
# write code here
return base ** exponent
数值的整数次方
http://www.nowcoder.com/practice/1a834e5e3e1a4b7ba251417554e07c00
使用乘方运算符
class Solution:
def Power(self , base: float, exponent: int) -> float:
# write code here
return base ** exponent
相关推荐