复数由实数部分和虚数部分构成,可以用a + bj,或者complex(a,b)表示, 复数的实部a和虚部b都是浮点型虚数函数exp用math是不行的要用cmath插件import cmathprint(cmath.exp(1-1j))