python 读取网页

import urllib.request
response = urllib.request.urlopen('http://www.baidu.com/')
html = response.read()
z_data=html.decode('UTF-8')
print(z_data)
posted @ 2015-01-08 16:38  chaotech  阅读(320)  评论(0)    收藏  举报