状态码:
200:代表成功
301 跳转
304 服务器端无变化 可使用缓存资源
400 请求参数不合法
403 无权限访问 服务器端禁止访问该资源
404 文件找不到
500 服务器异常
python2 与python3的urllib不同在与python3要加上.request
比如:import urllib.request
res=urllib.request.urlopen(html)
data = urllib.request.urlretrieve("http://...")