numpy 返回函数的上三角矩阵实例 numpy返回函数的上三角矩阵np.triu()matrix2=np.triu(matrix1)numpy.triu(m,k=0)[source]Uppertriangleofanarray.Retu 三角