判断一个网站的状态码,并截取状态码,判断状态码是否为200 url为对应的网址,测试可以使用www.baidu.com. 异常网址可以用

NoSuchKey

猜你喜欢

转载自blog.csdn.net/zhangthree1/article/details/109129862