求助:一个CSV数据文件,在前面加10行,生成一个新的数据文件
数据文件的格式如下:ate/Time CH#0 (CH0) (掳C) CH#1 (CH1) (掳C) CH#2 (CH2) (掳C) CH#3 (CH3) (掳C) CH#4 (CH4) (掳C) CH#5 (CH5) (掳C) CH#6 (CH6) (掳C)
2017/11/1 10:22 19.84 19.27 19.11 19.82 17.91 19.17 18.81
2017/11/1 10:22 19.85 19.28 18.88 19.71 17.77 19.25 18.57
2017/11/1 10:22 19.85 19.34 18.85 19.19 18.21 19.38 18.82
2017/11/1 10:23 19.86 19.47 18.58 18.4 17.63 19.04 18.67
2017/11/1 10:23 19.86 19.66 18.96 18.8 17.88 19.42 18.89
2017/11/1 10:23 19.87 19.33 18.93 19.14 17.73 19.39 18.74
2017/11/1 10:23 19.87 19.24 18.78 18.78 17.88 19.21 19.02
2017/11/1 10:23 19.87 19.3 18.75 18.9 17.95 19.15 19.06
2017/11/1 10:23 19.88 19 18.91 19.15 17.86 19.43 18.63
2017/11/1 10:23 19.88 18.91 18.7 18.76 17.87 18.91 18.63
2017/11/1 10:24 19.88 18.94 19.13 19.22 17.62 19.03 18.85
2017/11/1 10:24 19.88 19.5 19.16 19.5 21.22 19.31 20.42
2017/11/1 10:24 19.88 19.5 19.84 19.81 20.85 19.93 21.19
2017/11/1 10:24 19.89 19.29 19.35 19.29 19.84 19.35 20.33
2017/11/1 10:24 19.89 19.69 19.63 19.66 20.09 19.78 19.81
2017/11/1 10:24 19.89 19.63 20.21 19.81 19.44 19.6 19.72
2017/11/1 10:24 19.89 19.47 20.12 19.84 19.04 19.66 19.84
2017/11/1 10:24 19.89 19.72 19.97 20.06 19.01 20.03 19.81
2017/11/1 10:25 19.89 20.34 20.52 20.24 19.29 20.52 20.46
2017/11/1 10:25 19.89 20.61 20.74 20.49 19.6 20.64 20.46
2017/11/1 10:25 19.89 20.68 20.83 20.77 19.78 20.68 20.52
2017/11/1 10:25 19.89 20.74 20.71 20.74 19.81 20.83 20.83
2017/11/1 10:25 19.89 20.77 20.92 20.83 20.15 20.89 20.77
2017/11/1 10:25 19.89 20.92 21.1 20.95 19.84 21.07 21.04
2017/11/1 10:25 19.89 21.04 21.38 20.86 19.97 21.17 21.04
把第一行去掉,前面11行变成:
E:SMT.TRW
Logger Serial Number 1
Backup time: 2017/11/1 10:52
Start time : 2017/11/1 10:22
End time : 2017/11/1 10:52
Number of Readings: 676
Sample Rate : 8 seconds :
Title : 1
Date Int Temp Thermo1 Thermo2 Thermo3 Thermo4 Thermo5 Thermo6
C C C C C C C
2017/11/1 10:22 19.84 19.27 19.11 19.82 17.91 19.17 18.81
2017/11/1 10:22 19.85 19.28 18.88 19.71 17.77 19.25 18.57
2017/11/1 10:22 19.85 19.34 18.85 19.19 18.21 19.38 18.82
2017/11/1 10:23 19.86 19.47 18.58 18.4 17.63 19.04 18.67
2017/11/1 10:23 19.86 19.66 18.96 18.8 17.88 19.42 18.89
2017/11/1 10:23 19.87 19.33 18.93 19.14 17.73 19.39 18.74
2017/11/1 10:23 19.87 19.24 18.78 18.78 17.88 19.21 19.02
2017/11/1 10:23 19.87 19.3 18.75 18.9 17.95 19.15 19.06
2017/11/1 10:23 19.88 19 18.91 19.15 17.86 19.43 18.63
2017/11/1 10:23 19.88 18.91 18.7 18.76 17.87 18.91 18.63
2017/11/1 10:24 19.88 18.94 19.13 19.22 17.62 19.03 18.85
2017/11/1 10:24 19.88 19.5 19.16 19.5 21.22 19.31 20.42
2017/11/1 10:24 19.88 19.5 19.84 19.81 20.85 19.93 21.19
2017/11/1 10:24 19.89 19.29 19.35 19.29 19.84 19.35 20.33
2017/11/1 10:24 19.89 19.69 19.63 19.66 20.09 19.78 19.81
2017/11/1 10:24 19.89 19.63 20.21 19.81 19.44 19.6 19.72
2017/11/1 10:24 19.89 19.47 20.12 19.84 19.04 19.66 19.84
2017/11/1 10:24 19.89 19.72 19.97 20.06 19.01 20.03 19.81
2017/11/1 10:25 19.89 20.34 20.52 20.24 19.29 20.52 20.46
2017/11/1 10:25 19.89 20.61 20.74 20.49 19.6 20.64 20.46
2017/11/1 10:25 19.89 20.68 20.83 20.77 19.78 20.68 20.52
2017/11/1 10:25 19.89 20.74 20.71 20.74 19.81 20.83 20.83
2017/11/1 10:25 19.89 20.77 20.92 20.83 20.15 20.89 20.77
2017/11/1 10:25 19.89 20.92 21.1 20.95 19.84 21.07 21.04
2017/11/1 10:25 19.89 21.04 21.38 20.86 19.97 21.17 21.04
其中:数据可能是三列到八列
E:SMT.TRW
Logger Serial Number 1
Backup time: 2017/11/1 10:52 》》》》》数据的结束时间
Start time : 2017/11/1 10:22 》》》》》数据的开始时间
End time : 2017/11/1 10:52 》》》》》书记的结束时间
Number of Readings: 676 》》》》》总的数据行数
Sample Rate : 8 seconds 》》》》》数据的时间间隔,按秒计算
Title : 1
Date Int Temp Thermo1 Thermo2 Thermo3 Thermo4 Thermo5 Thermo6
C C C C C C