使用 shell 脚本或 jython 将 Excel 转换为 csv。如果是这样怎么办
我正在寻找一个程序,如果有一些 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
为了在各种文件格式之间进行转换,我使用: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