python版本3.5
import urllib.request
url = "http://www.baidu.com"
html = urllib.request.urlopen(url).read()
print(html)