2019年9月27日

正则表达式

摘要: 1、re.match 语法: re.match(pattern, string, flags=0) 功能: 在字符串的起始位置匹配一个模式, 符合条件的模式不在起始位置也返回None 测试字符串: restr = '''<div class="viewad-topMeta"><div class=" 阅读全文

posted @ 2019-09-27 17:22 孔扎根 阅读(182) 评论(0) 推荐(0) 编辑

导航