We don’t allow questions seeking recommendations for software libraries, tutorials, tools, books, or other off-site resources. You can edit the question so it can be answered with facts and citations.
Closed 10 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(4)
csv
模块可以以可读的格式导出几乎所有电子表格程序都可以轻松实现。不过,从您的问题中并不清楚您想要将什么内容放入这样的文件中。The
csv
module can export in a format that can be read by nearly all spreadsheet programs with little difficulty. It's not really clear from your question what you want to put in such a file, though.http://sourceforge.net/projects/pyexcelerator/
可用于轻松创建 Excel 文件。查看示例文件夹中的示例
在源代码树中。
http://sourceforge.net/projects/pyexcelerator/
can be used to create Excel files easily. Check out the examples from the examples folder
within the source tree.
我个人的喜好:
用于写入 Excel 文件
用于读取 Excel 文件
就到这里。
这使用 pypi。所以就更好了!
My personal preference:
For writing Excel Files
For Reading Excel Files
Just go here.
This uses pypi. So it's even better!
csv 模块可以提升您的电子表格。
假设您已读入文件内容,以下是相关电子表格的创建:
当然,还会有额外的读取文件和循环将多行写入 csv 文件,这只是一个基本示例。
The csv module can do your spreadsheet lifting.
Assuming you have the file contents read in, here is the relevant spreadsheet creation:
Of course, there will be additional reading files and loops to write more than one row to the csv file, this is just a basic example.