原文件:
7.8094,1.0804,5.7632,0.012269,0.008994,-0.003469,-0.79279,-0.064686,0.11635,0.68827,5.7169,7.9329,0.010264,0.003557,-0.011691,-0.57559,-0.56121,
原文件数据比较多,是一个125行,45类float数字。
代码:
# -*- coding: utf-8 -*-
import numpy as np
def readFile(path):
# 打开文件(注意路径)
f = open(path)
# 逐行进行处理
first_ele =
1