将numpy导入为np
file = open(“ test1_points_deneme.txt”,“ r”,编码=“ utf-8”) file_2 = open(“ test2_points_deneme.txt”,“ r”,encoding =“ utf-8”)
in_file = file.readlines() in_file2 = file_2.readlines()
veri_1 = [[in_file中r的r.split()中的i的float(i)] veri_2 = [[in_file2中r对r.split()中i的float(i)]
veri_1 = np.array(veri_1) veri_2 = np.array(veri_2)
coefficient_mat = np.zeros((12,6)) spective_mat = np.zeros((12,1))
i = 0 j = 0