pater=re.compile('abc(.*?.jpg)',flags=re.IGNORECASE) # 正则表达式语句 url_list = pater.findall(page_text) # 传入内容进行匹配 url_list = list(set(url_list))