python3.0学习一 打开网页

import urllib.request
response=urllib.request.urlopen("http://www.fishc.com")
html=response.read()
#解码操作
html=html.decode()
print(html)

你可能感兴趣的:(python)