Python 标准库math中用来求幂运算的函数是pow(x,y)pow(x,y)函数和x**y是等效的,都是计算x的y次方用法:import math print(math.pow(4,2)). 2019-09-25 紫薇参星2.
確定! 回上一頁