from numpy import *
构造4 * 4随机数组,返回一个或一组服从“0~1”均匀分布的随机样本值。随机样本取值范围是[0,1),不包括1
print(random.rand(4,4))
mat()将数组转换为矩阵
randMat=mat(random.rand(4,4))
求逆矩阵
print(randMat.I)
invRandMat=randMat.I
print(randMat*invRandMat)
myEye=randMat*invRandMat
print(myEye-eye(4))
'''