import re string = """ """ a = re.findall(r'title="(.*?)"> ',string) print(a)
string里面是html的内容前提是你爬到了这个html,不然啥都是白扯