python标准库math中用来计算平方根的函数是
来源:动视网
责编:小OO
时间:2024-10-19 14:27:34
python标准库math中用来计算平方根的函数是
sqrt()。在Python的标准库math中,用来计算平方根的函数是sqrt()。pythonimportmath,x=9,sqrt_x=math.sqrt(x),print(sqrt_x)#输出:3.0。
导读sqrt()。在Python的标准库math中,用来计算平方根的函数是sqrt()。pythonimportmath,x=9,sqrt_x=math.sqrt(x),print(sqrt_x)#输出:3.0。

sqrt()。在Python的标准库math中,用来计算平方根的函数是sqrt()。pythonimportmath,x=9,sqrt_x=math.sqrt(x),print(sqrt_x)#输出:3.0。
python标准库math中用来计算平方根的函数是
sqrt()。在Python的标准库math中,用来计算平方根的函数是sqrt()。pythonimportmath,x=9,sqrt_x=math.sqrt(x),print(sqrt_x)#输出:3.0。