以编程方式从Excel电子表格中提取数据 [英] Programmatically extract data from an Excel spreadsheet

查看:606
本文介绍了以编程方式从Excel电子表格中提取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有一个简单的方法,使用一些常见的Unix脚本语言(Perl / Python / Ruby)或命令行实用程序,将Excel电子表格文件转换为CSV?具体来说,这一个:

Is there a simple way, using some common Unix scripting language (Perl/Python/Ruby) or command line utility, to convert an Excel Spreadsheet file to CSV? Specifically, this one:

http://www.econ.yale.edu/~shiller/data/ie_data.xls

具体来说,该电子表格的第三页前两个是图表)。

And specifically the third sheet of that spreadsheet (the first two being charts).

推荐答案

有一个非常好的Perl库供xls阅读: Spreadsheet :: ParseExcel

There is a really good Perl library for xls reading: Spreadsheet::ParseExcel.

这篇关于以编程方式从Excel电子表格中提取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆