import urllib.requestresp=urllib.request.urlopen("http://fanyi.baidu.com/")html=resp.read()html = html.decode("utf-8")print (html)