从目录中选择某些文件

时间:2017-05-26 16:18:01

标签: python python-2.7 python-3.x

我们维护一个文件夹,其中包含按日期组织的Excel报告。我试图找到一种方法,我们可以查看每个工作簿中的几列数据,但仅限于给定的日期范围。我真正挣扎的是找到一种只打开信息的方法

const oldObj = () => { 
    const printLog = () => console.log("hello");
    return {printLog};
};

const newObj = () => {   
    const test = function() {
        this.printLog(); //fails here!
        console.log("world");
    };
    return {test}; 
};

const mix = Object.assign(oldObj(), newObj());

mix.printLog();
mix.test();

我确信有更好的方法可以写出这一切,但还不知道一件事。我还处于学习的早期阶段。

1 个答案:

答案 0 :(得分:0)

查看openpyxl模块。

关于如何使用它来阅读Excel电子表格,这是一篇非常好的文章:https://automatetheboringstuff.com/chapter12/

这包括阅读和解析日期。

相关问题