import numpy as np #导入模块. a = np.mat(np.arange(-4,3)) #创建一个矩阵. np.abs(a) # 对矩阵a取绝对值. np.fabs(a) # 对矩阵a取浮点类的绝对值.
確定! 回上一頁