138 - 问,什么是csv格式

138 - 问,什么是csv格式

comma-separated values (CSV) 

格式注意

不能简单的用逗号分隔。

1. DOS-style lines that end with (CRLF) characters

2. An optional header record (there is no sure way to detect whether it is present, so care is required when importing).

3. Each record "should" contain the same number of comma-separated fields.

4. Any field may be quoted (with double quotes).

5. Fields containing a line-break, double-quote, and/or commas should be quoted. (If they are not, the file will likely be impossible to process correctly, so this should is better taken as must).

6. A (double) quote character in a field must be represented by two double quote characters.

辅助函数

138 - 问,什么是csv格式_第1张图片

参考资料

http://en.wikipedia.org/wiki/Comma-separated_values

你可能感兴趣的:(138 - 问,什么是csv格式)