主页
Python
Python cmath.rect() 方法
demo_ref_cmath_rect
运行 ❯
×
更改方向
保存代码
更改主题
#import cmath for complex number operations import cmath #convert a polar coordinate to rectangular form print(cmath.rect(3.1622776601683795, 1.2490457723982544))
(1+3j)