打开py的IDLE
>>>import urllib.request
>>>a=urllib.request.urlopen("http://www.baidu.com")
>>>html=a.read().decode("utf-8")
>>>print(html)
结果:
posted on 2017-06-15 11:17 东京$ 阅读(343) 评论(0) 编辑 收藏 举报