CSV文件可以有注释吗? [英] Can a CSV file have a comment?

查看:4889
本文介绍了CSV文件可以有注释吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有任何官方方式允许CSV格式的文件允许在自己的行上或在行尾的注释吗?



我尝试检查< a href =http://en.wikipedia.org/wiki/Comma-separated_values =nofollow noreferrer>维基百科以及 RFC 4180 ,但两个没有提到任何东西,导致我相信它不是文件格式的一部分,所以这是运气不好,我应该然后使用一个单独ReadMe.txt文件解释文件。



最后,我知道我很容易添加自己的评论,但我希望类似Excel的东西可以



那么,想法?

解决方案

CSV标准(例如它)不指定应如何处理注释,不,由应用程序建立约定并坚持使用。 p>

Is there any official way to allow a CSV formatted file to allow comments, either on its own line OR at the end of a line?

I tried checking wikipedia on this and also RFC 4180 but both do not mention anything which leads me to believe that it's not part of the file format so it's bad luck to me and I should then use a seperate ReadMe.txt file thingy to explain the file.

Lastly, i know it's easy for me to add my own comments in, but i was hoping that something like Excel could just import it straight away with no need for a consumer to have to customize the import process.

So, thoughts?

解决方案

The CSV "standard" (such as it is) does not dictate how comments should be handled, no, it's up to the application to establish a convention and stick with it.

这篇关于CSV文件可以有注释吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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