代码示例:(标识:python_type_complex)
python_type_complex.py
x = 1j

#display x:
print(x)

#display the data type of x:
print(type(x))
运行结果: