回复:我做错了什么? [英] Re: What am I doing wrong?

查看:77
本文介绍了回复:我做错了什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

On 2008-07-06 21:09:55 +0100,Joe Wright< jo ******** @ comcast.netsaid:

On 2008-07-06 21:09:55 +0100, Joe Wright <jo********@comcast.netsaid:


你同意吗...


会员,第一,mi,last,dob,eff_date,exp_date

1,John ,, Doe,07/04 / 1776,01 / 01/1800,

2,Mack,T,Knife,11/11 / 1918,10 / 1 / 1939,5 / 25/2005


..可能是您的CSV文件的内容?
Do you agree that ..

member,first,mi,last,dob,eff_date,exp_date
1,John,,Doe,07/04/1776,01/01/1800,
2,Mack,T,Knife,11/11/1918,10/1/1939,5/25/2005

.. might be the contents of your CSV file?



错误,不是真的与股市价格无关:)。

-

我不赞同你说的话,但我会为你的权利辩护

说出来。 - 伏尔泰

Err, no not really as that has nothing to do with stock market prices :).
--
"I disapprove of what you say, but I''ll defend to the death your right
to say it." - Voltaire

推荐答案

Cromulent写道:
Cromulent wrote:

2008-07 -06 21:09:55 +0100,Joe Wright< jo ******** @ comcast.netsaid:
On 2008-07-06 21:09:55 +0100, Joe Wright <jo********@comcast.netsaid:

>你同意吗..

成员,第一,mi,last,dob,eff_date,exp_date
1,John ,, Doe,07/04 / 1776,01 / 01/1800,
2,Mack,T,Knife,11/11 / 1918,10 / 1 / 1939,5 / 25/2005

..可能是你的CSV文件的内容?
>Do you agree that ..

member,first,mi,last,dob,eff_date,exp_date
1,John,,Doe,07/04/1776,01/01/1800,
2,Mack,T,Knife,11/11/1918,10/1/1939,5/25/2005

.. might be the contents of your CSV file?



Err,不,不是因为这与股市价格无关:)。


Err, no not really as that has nothing to do with stock market prices :).



当然。我在谈论文件的格式。在

的情况下,Microsoft Excel,Visual FoxPro以及可能的Access,CSV文件是表格的文本表格。 CSV文件的第一行(行)是列的

名称,后续行是列的值。


这是那种您正在谈论的CSV文件或者您有其他想法吗?

-

Joe Wright

所有事情都应尽可能简单,但并不简单。

---阿尔伯特爱因斯坦---

Of course. I was talking about the format of the file. In the case of
Microsoft Excel, Visual FoxPro and perhaps Access, CSV files are text
representations of tables. The first row (line) of the CSV file are the
names of the columns and subsequent lines are the values of the columns.

Is this the kind of CSV file you are talking about or do you have some
other idea?
--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---


On 2008-07-06 22:11:48 +0100,Joe Wright< jo ******** @ comcast.netsaid:
On 2008-07-06 22:11:48 +0100, Joe Wright <jo********@comcast.netsaid:

Cromulent写道:
Cromulent wrote:

> 2008-07-06 21:09:55 +0100,Joe Wright< jo ******** @ comcast.netsaid:
>On 2008-07-06 21:09:55 +0100, Joe Wright <jo********@comcast.netsaid:

>>你同意吗...

成员,第一,mi,last,dob,eff_date,exp_date 1,John ,, Doe,07/04 / 1776,01 / 01/1800,
2,Mack,T,Knife,11/11 / 1918,10 / 1 / 1939,5 / 25/2005

..可能是您的CSV文件的内容?
>>Do you agree that ..

member,first,mi,last,dob,eff_date,exp_date
1,John,,Doe,07/04/1776,01/01/1800,
2,Mack,T,Knife,11/11/1918,10/1/1939,5/25/2005

.. might be the contents of your CSV file?


错误,不,不是因为这与股市价格无关:)。


Err, no not really as that has nothing to do with stock market prices :).



当然。我在谈论文件的格式。在

的情况下,Microsoft Excel,Visual FoxPro以及可能的Access,CSV文件是表格的文本表格。 CSV文件的第一行(行)是列的

名称,后续行是列的值。


这是那种您正在谈论的CSV文件,或者您有其他想法吗?


Of course. I was talking about the format of the file. In the case of
Microsoft Excel, Visual FoxPro and perhaps Access, CSV files are text
representations of tables. The first row (line) of the CSV file are the
names of the columns and subsequent lines are the values of the columns.

Is this the kind of CSV file you are talking about or do you have some
other idea?



啊,我明白了。是的,这正是我将要使用的数据类型。这里

就是一个例子:


日期,开盘价,最高价,最低价,收盘价,成交量

3-Jul-08, 0.80,1.09,0.80,1.09,77800

2-Jul-08,1.08,1.09,0.56,0.94,19600

1-Jul-08,1.09,1.09, 0.95,1.08,29700

30-Jun-08,0.80,1.09,0.75,1.09,11500

-

"我不赞成你说什么,但我会为你的权利辩护

说出来。 - 伏尔泰

Ah, I see. Yes that is exactly the type of data I will be using. Here
is an example:

Date,Open,High,Low,Close,Volume
3-Jul-08,0.80,1.09,0.80,1.09,77800
2-Jul-08,1.08,1.09,0.56,0.94,19600
1-Jul-08,1.09,1.09,0.95,1.08,29700
30-Jun-08,0.80,1.09,0.75,1.09,11500
--
"I disapprove of what you say, but I''ll defend to the death your right
to say it." - Voltaire


Cromulent写道:
Cromulent wrote:

On 2008-07-06 22:11: 48 +0100,Joe Wright< jo ******** @ comcast.netsaid:
On 2008-07-06 22:11:48 +0100, Joe Wright <jo********@comcast.netsaid:

> Cromulent写道:
>Cromulent wrote:

>> On 2008-07-06 21:09:55 +0100,Joe Wright< jo ******** @ comcast.netsaid:
你同意......

成员,第一,mi,last,dob,eff_date,exp_date
1,John ,, Doe,07/04 / 1776,01 / 01/1800,
2,Mack,T,Knife,11/11 / 1918,10 / 1 / 1939,5 / 25/2005

..可能是你的CSV文件的内容?

错误,不,不是因为这与股市价格无关
:)。
>>On 2008-07-06 21:09:55 +0100, Joe Wright <jo********@comcast.netsaid:
Do you agree that ..

member,first,mi,last,dob,eff_date,exp_date
1,John,,Doe,07/04/1776,01/01/1800,
2,Mack,T,Knife,11/11/1918,10/1/1939,5/25/2005

.. might be the contents of your CSV file?

Err, no not really as that has nothing to do with stock market prices
:).


当然。我在谈论文件的格式。在Microsoft Excel,Visual FoxPro和Access的情况下,CSV文件是表格的文本表示。 CSV文件的第一行(行)是
列的名称和后续行是
列的值。

这是那种CSV文件吗?正在谈论或者你有其他想法吗?


Of course. I was talking about the format of the file. In the case of
Microsoft Excel, Visual FoxPro and perhaps Access, CSV files are text
representations of tables. The first row (line) of the CSV file are
the names of the columns and subsequent lines are the values of the
columns.

Is this the kind of CSV file you are talking about or do you have some
other idea?



啊,我明白了。是的,这正是我将要使用的数据类型。这是

的一个例子:


日期,开盘价,最高价,最低价,收盘价,成交量

3-Jul-08, 0.80,1.09,0.80,1.09,77800

2-Jul-08,1.08,1.09,0.56,0.94,19600

1-Jul-08,1.09,1.09, 0.95,1.08,29700

30-Jun-08,0.80,1.09,0.75,1.09,11500


Ah, I see. Yes that is exactly the type of data I will be using. Here is
an example:

Date,Open,High,Low,Close,Volume
3-Jul-08,0.80,1.09,0.80,1.09,77800
2-Jul-08,1.08,1.09,0.56,0.94,19600
1-Jul-08,1.09,1.09,0.95,1.08,29700
30-Jun-08,0.80,1.09,0.75,1.09,11500



好​​的,谢谢。我每天都在处理这些.csv文件。二十年来我没有使用过strtok(),因为我弄清楚它是如何工作的。


给出你的示例文件,你想要什么?如何处理这些数据?


-

Joe Wright

所有东西都应尽可能简单,但是并不简单。

---阿尔伯特爱因斯坦---

Ok, thanks. I deal with these .csv files every day at my job. I haven''t
used strtok() in twenty years, since I figured out how it works.

Given your example file, what do you want to do with the data?

--
Joe Wright
"Everything should be made as simple as possible, but not simpler."
--- Albert Einstein ---


这篇关于回复:我做错了什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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