本文介绍了在Python中创建多个CSV工作表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有什么方法可以在Python中以编程方式创建具有多个工作表的CSV文件吗?
Is there any way to create a CSV file with multiple sheets programmatically in Python?
推荐答案
多个CSV文件.每张一张CSV文件.
Multiple CSV files. One CSV file per sheet.
逗号分隔值文件是纯文本格式.它只能表示平面数据,例如表格(或"Sheet")
A comma seperated value file is a plain text format. It is only going to be able to represent flat data, such as a table (or a 'Sheet')
要存储多张纸,应使用单独的CSV文件.您可以分别编写每个文件,然后分别将它们导入/解析到目的地.
For storing multiple sheets, you should use separate CSV files. You can write each one separately and import/parse them individually into their destination.
这篇关于在Python中创建多个CSV工作表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!