I have the following problem at work - I need to take a log file with items arranged as follows:
A1
B1
C1
A2
B2
C2
.
.
.
An
Bn
Cn
I need a complete csv file like so:
A1,B1,C1
A2,B2,C2
A3,B3,C3
...
An,Bn,Cn
How can I do this using a python script?
EDIT: Actually, the format is written out in the following way -
Voltage: A1
Current: B1
Power: C1
How can I convert it to -
Voltage, Current, Power
A1,B1,C1
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…