摘要:
fnmatch 模块,提供了对 Unix shell 的规则的支持,类似正则,但不一样,匹配的规则只有3条:*, ?, 在 [] 里的任意字符 模块方法: fnmatch.fnmatch(filename, pattern):判断 filename 是否符合匹配模式规则,忽略大小写fnmatch.f 阅读全文
posted @ 2018-01-24 16:13
tccbj
阅读(223)
评论(0)
推荐(0)