1、Python3获取网页的状态码的两种方法
3、urlopen()方法访问一个url,得到对象http.client.HTTPResponse
5、同样,使用getcode()方法,一样可以获取网页对象的状态码