W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
# 导入复数数学库用于复数运算 import cmath # 计算复数的极坐标 print(cmath.polar(2 + 3j)) print(cmath.polar(1 + 5j))
x
# 导入复数数学库用于复数运算
import
cmath
# 计算复数的极坐标
print
(
cmath
.
polar
(
2
+
3j
))
print
(
cmath
.
polar
(
1
+
5j
))