代码示例:(标识:python_numbers_complex)
python_numbers_complex.py
x = 2+3j
y = 7j
z = -7j

print(type(x))
print(type(y))
print(type(z))
运行结果: