您好, 欢迎来到 !    登录 | 注册 | | 设为首页 | 收藏本站

在.net中编写CSV文件

在.net中编写CSV文件

如果您的单元格中有逗号,请用双引号将整个单元格括起来,例如:

cell 1,cell 2,"This is one cell, even with a comma",cell4,etc

并且,如果您想要字面双引号,请执行其中两个,例如:

cell 1,cell 2,"This is my cell and it has ""quotes"" in it",cell 4,etc

至于日期,请坚持使用ISO格式,并且应该没问题(例如yyyy-mm-dd hh:mm:ss)

dotnet 2022/1/1 18:14:19 有746人围观

撰写回答


你尚未登录,登录后可以

和开发者交流问题的细节

关注并接收问题和回答的更新提醒

参与内容的编辑和改进,让解决方法与时俱进

请先登录

推荐问题


联系我
置顶