with open(path, 'r') as file:
# 逐行读取文件内容
for line in file:
line = line.strip()
# 处理每一行数据(这里只是将其输出到控制台)
line = line.split()
line = [float(x) for x in line]
data.append(line)
with open(path, 'r') as file:
# 逐行读取文件内容
for line in file:
line = line.strip()
# 处理每一行数据(这里只是将其输出到控制台)
line = line.split()
line = [float(x) for x in line]
data.append(line)