filter.py 文件源码

python
阅读 25 收藏 0 点赞 0 评论 0

项目:smartschool 作者: asifkodur 项目源码 文件源码
def get_workbooks(self):
        """
        If the data to be processed is not stored in files or if
        special parameters need to be passed to xlrd.open_workbook
        then this method must be overriden.
        Any implementation must return an iterable sequence of tuples.
        The first element of which must be an xlrd.Book object and the
        second must be the filename of the file from which the book
        object came.
        """
        for path in self.get_filepaths():
            yield (
                xlrd.open_workbook(
                    path,
                    pickleable=0,
                    formatting_info=1,
                    on_demand=True),
                os.path.split(path)[1]
                )
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号