会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
pogeba
博客园
首页
新随笔
联系
订阅
管理
2020年1月3日
python中的glob库函数
摘要: glob 文件名模式匹配,用来判断每个文件是不是符合模式。 1、通配符 星号(*)匹配零个或多个字符 1 import glob 2 for name in glob.glob('dir/*'): 3 print (name) dir/file.txt dir/file1.txt dir/file2
阅读全文
posted @ 2020-01-03 17:12 pogeba
阅读(1727)
评论(0)
推荐(0)
编辑
公告