我想在csv文件上记录数据...不是行,列方向。 [英] I want to record data on csv file ... not row , column direction.

查看:58
本文介绍了我想在csv文件上记录数据...不是行,列方向。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想写这种格式的数据..



我发了csv文件..但问题是它不能写colum区域..

i想要像下面这样运作..





2013.08.28 14; 24



Num 1 2 3 4 5 6

银行电压0 0 0 0 0 0

最大。电池电压0 0 0 0 0 0

平均电池电压0 0 0 0 0 0

最小值电池电压0 0 0 0 0 0

最大。温度0 0 0 0 0 0

平均温度0 0 0 0 0 0

分钟温度0 0 0 0 0 0

SoC(SoE)0 0 0 0 0 0

银行当前0 0 0 0 0 0

状态flag 0 0 0 0 0 0

Fault / Warnig flag 0 0 0 0 0 0

保留0 0 0 0 0 0

总排放量0 0 0 0 0 0

I want to write data this format..

I made csv file.. but the problem is that it can't write colum area..
i want to operate like below ..


2013.08.28 14;24

Num 1 2 3 4 5 6
Bank voltage 0 0 0 0 0 0
Max. cell voltage 0 0 0 0 0 0
Avg. cell voltage 0 0 0 0 0 0
Min. cell voltage 0 0 0 0 0 0
Max. temperature 0 0 0 0 0 0
Avg. temperature 0 0 0 0 0 0
Min. temperature 0 0 0 0 0 0
SoC (SoE) 0 0 0 0 0 0
Bank current 0 0 0 0 0 0
Status flag 0 0 0 0 0 0
Fault/Warnig flag 0 0 0 0 0 0
Reserved 0 0 0 0 0 0
Total discharged 0 0 0 0 0 0

推荐答案

CSV文件是一个逗号分隔值的文本文件。我们创建CSV文件,以便它们可以成为某些应用程序/程序的输入,并且可以轻松读取来自它们的数据。默认情况下,该文件没有任何列,因此每当您编写/更新该值时,您都需要在每行中自己指定这些列。重要的是,您的文件将使用空格而不是逗号分隔数据。因此,完全取决于您如何创建文件以及如何更新文件。
A CSV file is a text file with comma separated values. We create CSV files so that they can become input of some application/program and the data from them can be read easily. The file don't have any columns by default, so you need to specify those columns yourself in each row whenever you are writing/updating that value. The important thing is that your file will have data separated by space instead of comma. So, it is entirely up to you how you create the file and how you update data in it.


这篇关于我想在csv文件上记录数据...不是行,列方向。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆