css_url = "http:" + re.search('(//.+svgtextcss.+\.css)', html).group() 这句当html中存在多个css的时候,会提取的内容不正确,修改为 css_url = "http:" + re.search('(//[^\"\']+?svgtextcss.+?\.css)', html).group() 就可以解决此问题了