login_url = re.search('replace\(\'([^\']+)\'\)', resp.text).group(1) AttributeError: 'NoneType' object has no attribute 'group'
re.search('replace\(\'([^\']+)\'\)', resp.text)语句返回值为空。