Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何批量读取多个.xlsx数据文件? #96

Open
wungsen opened this issue Apr 25, 2016 · 2 comments
Open

如何批量读取多个.xlsx数据文件? #96

wungsen opened this issue Apr 25, 2016 · 2 comments

Comments

@wungsen
Copy link

wungsen commented Apr 25, 2016

齐老师,谢谢您的这本《零基础学Python》,对于初学者很有帮助。

本人不是程序员,在日常工作中需要处理一些Excel表格数据。在“电子表格”章节中,讲述了读取单个.xlsx文件的数据方法。

困扰我的一点是,如何(批量)读取大量的.xlsx数据文件,比如读取365天每日的格式化数据中某个单元格数据至同一张表格中。我在Al Sweigart 写的《Automate the Boring Stuff with Python》 [https://automatetheboringstuff.com/chapter12/] 中也没找到。

盼回复!

@qiwsir
Copy link
Owner

qiwsir commented Apr 25, 2016

如果你的文件是存在可以明确指定的目录中,你可以检索目录中的文件,然后循环读取。不知道你说的大量文件,是不是这个意思。根据www.itdiffer.com加入我的qq群,深入讨论一下可以。

@wungsen
Copy link
Author

wungsen commented Apr 26, 2016

谢谢。我先摸索下,再向您请教。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants