Python 复数

复数

复数以 "j" 作为虚部:

实例

Complex:

x = 3+5j
y = 5j
z = -5j

print(type(x))
print(type(y))
print(type(z))

亲自试一试