validator.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:nerodia 作者: watir 项目源码 文件源码
def match_str_or_regex(str_or_regex, term):
        if isinstance(str_or_regex, re._pattern_type) and str_or_regex.search(term):
            return True
        elif str_or_regex == term:
            return True
        else:
            return False
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号