1、cmath函数导入:
import math
2、查看包中的内容:
>>> import cmath >>> dir(cmath)
3、实例使用操作:
>>> import cmath >>> cmath.sqrt(-1) 1j >>> cmath.sqrt(9) (3+0j) >>> cmath.sin(1)
上一篇:ping不通ip地址的原因是什么
下一篇:python中unichr函数的用法