主页
Python
Python cmath.polar() 方法
demo_ref_cmath_polar
运行 ❯
×
更改方向
保存代码
更改主题
#import cmath for complex number operations import cmath #find the polar coordinates of complex number print (cmath.polar(2 + 3j)) print (cmath.polar(1 + 5j))
(3.605551275463989, 0.982793723247329)
(5.0990195135927845, 1.373400766945016)