2023-05-05 03:30
Python
import math
x = 16
result = math.sqrt(x)
print(result)
输出:
4.0
注意:math库中的sqrt函数只能对正数求平方根。如果要计算复数的平方根,可以使用cmath库中的sqrt函数。
关于我们|免责条款|版权声明|侵权举报|隐私政策|联系我们
Copyright © 2025 IZhiDa.com All Rights Reserved.
知答 版权所有 粤ICP备2023042255号