1、使用math模块
import math math.sqrt(144) # 12
2、使用内置函数pow
pow(144, 0.5) # 12
3、使用数学表达式
144**0.5 # 12
海报分享
扫一扫,分享海报
打赏
Callme_Mr_Yang
你的鼓励将是我创作的最大动力
确定
一键三连