是否将元数据/标识符数据添加到CSV文件? [英] Adding metadata / identifier data to a CSV file?

查看:34
本文介绍了是否将元数据/标识符数据添加到CSV文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以在不影响内容或读取/写入文件的能力的情况下向CSV文件添加标签"(添加唯一的元数据/标识符)?

Is there a way to add a "tag" (add a unique metadata/identifier) to a CSV file without affecting the contents or ability to read/write the file?

我正在使用Python,但是我认为这里的语言无关紧要.

I am using Python, but I don't think the language matters here.

推荐答案

只需添加注释行,以便稍后进行解析.

Just add comment lines that you can parse later.

#Creator:JohnSmith
#Date:....
#Columns:id,username,...
1,JohnSmith
2, ..

这篇关于是否将元数据/标识符数据添加到CSV文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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