如何在google app引擎上读取excel文件 [英] how to read an excel file on google app engine
问题描述
通常我使用CSV文件,但对于这个项目,我需要支持XLS。有没有人有使用Python在GAE上阅读XLS文件的经验?
Generally I work with CSV files but for this project I need to support XLS too. Does anyone have experience reading XLS files on GAE with Python?
我正在考虑两种可能的替代方案:
2 possible alternatives I am considering:
- xlrd
- Google Docs API
推荐答案
xlrd 为您节省了使用Google文档隐含的网络往返;如果您不需要保存文档(这对Google文档很有帮助),这可能会使您趋向于xlrd。我相信它们都是高品质的。
xlrd saves you the network round-trip implied by the use of Google Docs; if you don't need to keep the document stored (which would be a substantial plus for Google Docs), this might incline you towards xlrd. I believe they're both high-quality.
但是,对于翻译的速度和准确性,真的没有替代方法,在一系列文件反映您的具体需求和兴趣。
However, for both speed and accuracy of "translation", there's really no alternative to benchmarking them both on a range of files reflecting your specific needs and interests.
这篇关于如何在google app引擎上读取excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!