import os
os.listdir(‘文件夹路径‘)
python常用命令—ipython3环境下获取某个文件夹下的文件列表
原文:https://www.cnblogs.com/summer1019/p/10349176.html