使用 shell 脚本或 jython 将 Excel 转换为 csv。如果是这样怎么办

发布于 2024-09-27 14:48:14 字数 213 浏览 1 评论 0原文

我正在寻找一个程序,如果有一些 shell 脚本,我可以将 excel 转换为 csv,如果有,请指导我,或者如果可能的话,我可以在 jython 中做什么。

主要原因是 Excel 是从其他来源接收的,并且标题总是在变化,这是不必要的,我们需要有一些自动方法来删除它。如果可以使用 jython 或 shell 脚本轻松做到这一点,并仅删除 excel 的第一行,

请提前致谢。

I am looking for a procedure where i can convert the excel to csv either if there some shell script , if so please guide me or if possbile how can i do in jython.

The main reason is that the excel is being received from other source and the header is always changing , which is unnecessary and we need to have some automatic way to remove that . If is it possible to do that easily using jython or shell script and remove only the first line of the excel

Thanks in advance.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

放赐 2024-10-04 14:48:14

为了在各种文件格式之间进行转换,我使用:PyODConverter。有Python和Java版本。

它使用 OpenOffice 作为服务,可以在各种文档格式之间进行转换,包括 MS Office、PDF 和文本。

还有纯Python库: xlrd 供开发人员从Microsoft Excel中提取数据的库( tm) 电子表格文件

To convert between various file formats I use: PyODConverter. There is Python and Java version.

It uses OpenOffice working as a service and can convert between various document formats including MS Office, PDF and text.

There is also pure Python library: xlrd Library for developers to extract data from Microsoft Excel (tm) spreadsheet files

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文