from urllib.request import urlopen
html = urlopen("http://www.baidu.com")
print(html.read())


注意: 以上代码基于Python 3.x

 

技术改变世界