HTML解析大法 HTML解析大法: 一.正则表达式 1.模块主要函数 123456789import re#创建正则表达式对象re.compile(pattern)#在字符串中寻找模式,返回match对象或Nonere.search(pattern,string)#从字符串开头匹配,返回match或Nonere.match(pattern,string)#返回列表re.findall(pattern,str 2022-01-17 前端 #前端 #爬虫