主页
Python
Python cmath.sqrt() 方法
demo_ref_cmath_sqrt
运行 ❯
×
更改方向
保存代码
更改主题
# Import cmath Library import cmath #Return the square root of a complex number print (cmath.sqrt(2 + 3j)) print (cmath.sqrt(15))
(1.6741492280355401+0.8959774761298381j)
(3.872983346207417+0j)