打印状态码问题
import urllib.request;
url = "http://www.baidu.com"
request = urllib.request.urlopen(url).read();
page = request.decode("utf-8")
print(page)
print(request.getcode());
我这样打印状态码错误了。为什么
import urllib.request;
url = "http://www.baidu.com"
request = urllib.request.urlopen(url).read();
page = request.decode("utf-8")
print(page)
print(request.getcode());
我这样打印状态码错误了。为什么
2017-09-27
举报