Instalar ntp desde el código fuente
¿Es la tercera versión de Python? Se debe utilizar urllib.parse.
Importar urllib.parse
Importar urllib.request
url = ' '
user_agent = 'Mozilla/4.0 (compatible; MSIE 5.5' Windows NT)'
valores = {'nombre':'Por qué',
Ubicación':'SDU',
Idioma': ' Python ',
ie' : 'utf-8 ',
wd' : 'python' }
headers = { 'user-agent' : agente-usuario}
datos = urllib.parse.urlencode(valor)
#data=data.encode(codificación='UTF8 ')
req = Solicitud de URL lib . solicitud (URL+'?'+datos)
#, datos, título)
respuesta = urllib . >_página = respuesta .read()
imprimir(_ página . decode(' UTF8 '))