import math与import cmath分别代表导入math模块和复数math模块
还有一种导入方式是
from math import sqrt
从math中单独导入sqrt
直接可以用sqrt来计算
前述都得用math.sqrt()或cmath.sqrt()来计算
欢迎分享,转载请注明来源:内存溢出
import math与import cmath分别代表导入math模块和复数math模块
还有一种导入方式是
from math import sqrt
从math中单独导入sqrt
直接可以用sqrt来计算
前述都得用math.sqrt()或cmath.sqrt()来计算
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)