1、访问速度太快 被封
req = urllib.request.Request(url=url, headers=headers)
response = urllib.request.urlopen(req)
data = response.read().decode('utf-8')
2、稳定 但是速度太慢
response,prediction = translator.translate(content, dest='es',src='es')
3、速度稍微快一些
url_encode_params = parse.urlencode(params)
url_params = url + url_encode_params
# print('url_params', url_params)
resp2 = requests.get(url_params, headers=headers)