文章分类 -  Python Code

记个操作Excel的Python代码
摘要:from win32com.client import constants, Dispatchclass EasyExcel: def __init__(self, filename=None): self.xlApp = Dispatch('Excel.Application') if filename: self.filename = filename self.xlBook = self.xlApp.Workbooks.Open(filename) else: print "... 阅读全文
posted @ 2012-06-12 11:35 Wandy.Ying 阅读(274) 评论(0) 推荐(0)