会员
众包
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
平沙落雁
博客园
首页
新随笔
联系
管理
订阅
2022年8月12日
python获取指定目录下文件
摘要: import os def readDir(dirPath): if dirPath[-1] == '/': print('文件夹路径末尾不能加/') return allFiles = [] # 储存 if os.path.isdir(dirPath): fileList = os.listdir
阅读全文
posted @ 2022-08-12 11:01 nate_pan
阅读(556)
评论(0)
推荐(0)
编辑
公告