CSV(逗号分隔值)文件 [英] CSV(comma separated values) files

查看:124
本文介绍了CSV(逗号分隔值)文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好!


当它表示没有关于从CSV文件中提取的数据类型的数据时,它是什么意思。


可以这样的人。


// Tony

解决方案

< blockquote> On Mon,2008年8月11日13:49:19 +0200,Tony Johansson

< jo ***************** @ telia.comwrote:


>你好!

当它说没有关于数据的信息时是什么意思从CSV文件中提取的数据类型。

有人可以吗。

// Tony



举一个简单的例子,一个包含123的CSV文件。你不能单独从CSV文件告诉

这是整数123,双是

123.0,字符串123和或者字符数组{''''',''''',''3''}。


将一些数据转换为CSV文件的字符串时

类型信息丢失。


HTH


rossum


8月11日,12:49 * pm,Tony Johansson < johansson.anders ... @ telia.com>

写道:


当它说不存在时是什么意思有关数据的信息

从CSV文件中提取的数据类型。



如果你澄清什么是它会有所帮助在这里。


Jon


Tony Johansson写道:


当它表示没有关于数据的信息时,这意味着什么?从CSV文件中提取的数据类型为



CSV不包含有关每列数据类型的信息。


这将是基于价值。


Arne


Hello!

What does it mean when it says that there is no information about the data
types of the data extracted from a CSV file.

Can somebody this.

//Tony

解决方案

On Mon, 11 Aug 2008 13:49:19 +0200, "Tony Johansson"
<jo*****************@telia.comwrote:

>Hello!

What does it mean when it says that there is no information about the data
types of the data extracted from a CSV file.

Can somebody this.

//Tony

Take a simple example, a CSV file containing "123". You cannot tell
from the CSV file alone whether this is the integer 123, the double
123.0, the string "123" or the character array {''1'', ''2'', ''3''}.

When you convert some data into a string for a CSV file much of the
type information is lost.

HTH

rossum


On Aug 11, 12:49*pm, "Tony Johansson" <johansson.anders...@telia.com>
wrote:

What does it mean when it says that there is no information about the data
types of the data extracted from a CSV file.

It would help if you''d clarify what "it" is here.

Jon


Tony Johansson wrote:

What does it mean when it says that there is no information about the data
types of the data extracted from a CSV file.

The CSV does not contain information about the data type of each column.

It will be a guess based on the values.

Arne


这篇关于CSV(逗号分隔值)文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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