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

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

问题描述

是否有任何官方方法可以让 CSV 格式的文件允许评论,无论是在自己的行还是在行的末尾?

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?

我尝试检查 wikipedia 以及 RFC 4180 但两者都没有提到任何让我相信它不是文件格式的一部分的东西,所以运气不好对我来说,然后我应该使用一个单独的 ReadMe.txt 文件来解释这个文件.

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.

最后,我知道添加自己的评论对我来说很容易,但我希望像 Excel 这样的东西可以直接导入它,而无需消费者自定义导入过程.

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.

所以,想法?

推荐答案

CSV标准"(例如它)并没有规定如何处理评论,不,这取决于应用程序来建立约定并坚持与它.

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天全站免登陆