📜  如何在 python 中分离复数的实部和虚部 - TypeScript 代码示例

📅  最后修改于: 2022-03-11 14:48:29.651000             🧑  作者: Mango

代码示例1
let x = 6 + 9j be a complex number
to get the real part use the code : 
x.real
output==> 6.0
to get the imaginary part use the code: 
x.imag
output==> 9.0