#coding=utf-8
import urllib2

req = urllib2.Request('http://bbs.csdn.net/callmewhy')

try:
	urllib2.urlopen(req)
except urllib2.URLError as e:
	print e.code
#coding=utf-8
import urllib2

req = urllib2.Request('http://bbs.csdn.net/callmewhy')

try:
	urllib2.urlopen(req)
except urllib2.URLError as e:
	print e.code
#coding=utf-8