获取python如何获取实部虚部

python如何获取实部虚部在 Python 中 你可以使用复数的 real 和 imag 属性来提取复数的实部和虚部 以下是一个简单的例子 python 创建一个复数 cn complex 2 3 打印复数 print Comple...