folder_path = r'D:\juesuan' # 将此处替换为要查询的文件夹路径
file_list = []
for root, dirs, files in os.walk(folder_path):
for file in files:
full_name = os.path.join(root, file)
file_list.append(full_name)
python获致指定文件夹下的所有文件
最新推荐文章于 2024-08-10 23:14:03 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)