【发布时间】:2021-02-28 10:33:18
【问题描述】:
我在一个文件夹中有近 10k 的 excel 文件,并且我有一个将近 8k 的文件名的 python 列表。我想从该文件夹中提取列表中存在的文件,然后将这些文件保存在另一个文件夹中。我查看了这些答案,但没有一个能解释我的问题:
- Get a filtered list of files in a directory
- Python: List all the file names in a directory and its subdirectories and then print the results in a txt file
- Use a list of values to select rows from a pandas dataframe
关于如何做到这一点的任何建议?
【问题讨论】: