[英]Best (easiest?) way to display an Excel sheet in Python
I've looked around on the web and haven't found a decisive answer to the question.我在网上环顾四周,没有找到这个问题的决定性答案。 I see that HTML.py is available, as well as win32com.client.
我看到 HTML.py 和 win32com.client 可用。
I'm sure they have their pros/cons, so I guess my question is aptly said: Whats the accepted, common, no frills way to take an XL spreadsheet and output it as a webpage?我确定他们有他们的优点/缺点,所以我想我的问题很恰当地说:采用 XL 电子表格并将其输出为网页的公认的、常见的、简洁的方式是什么?
I'm using Django btw, if that makes any difference.顺便说一句,我正在使用 Django,如果这有什么不同的话。
EDIT: I should have been more explicit originally.编辑:我本来应该更明确的。 I've manipulated my xl file to my hearts content using xlrd to read the file, and then re-writing it with xlwt.
我已经使用 xlrd 将我的 xl 文件处理为我的心内容来读取文件,然后用 xlwt 重写它。 So now I have a .xlsx file.
所以现在我有一个 .xlsx 文件。
What I'm looking to do is output this whole and caboodle(xlsx file) in HTML.我想要做的是在 HTML 中输出整个和 caboodle(xlsx 文件)。 The grid, color formatting, the actual table itself.
网格、颜色格式、实际表格本身。 NOT just the contents.
不仅仅是内容。
Apologies for the lack of clarity.对不清楚的地方深表歉意。
xlrd是一个从 Excel 文件中提取数据的简单库。
通过一些例子学习 xlrd 的一个好的开始是这个站点
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.