import requeststry: a=requests.get("https:///www.baidu.com") print('连接成功')except: print('连接失败')print('go on runing')