#实部

python 获取复数的实部虚部

 #Initializeacomplexnumbercn=complex(2,3)print("ComplexNumber:",cn)print("ComplexNumber-Realpart:",cn.real)print("ComplexNumber-Imaginarypart:",cn.imag)&nb...