首页 > 文章列表 > python3中幂怎么表示

python3中幂怎么表示

Python3
213 2022-08-07

首先导入math模块,然后调用pow()函数,即可实现幂运算,示例如下:

import math
math.pow(2,3)

结果如下:

8