Python 3.9.7 (tags/v3.9.7:1016ef3, Aug 30 2021, 20:05:41) [MSC v.1929 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>> i= 1+2j
>>> i.real
1.0
>>> i.imag
2.0
>>>
i.real 获取 实部 1.0
i.imag 获取虚部 2.0