from urllib import request
#打印错误信息 except Exception
list = [
"http://www.baidu11.com/",
"http://map.baidu.com/",
"https://www.cnblogs.com/fuguang/p/10607126.html",
"http://www.baidu.com/",
"http://www.baidu.com/"
]
i=0
for v in list:
i = i+1
try:
request.urlopen(v)
print("第",i,"次请求")
except Exception as e:
print(e)