try ... except...,好处是执行失败后,仍然可以继续运行
摘要:
import requeststry: a=requests.get("https:///www.baidu.com") print('连接成功')except: print('连接失败')print('go on runing') 阅读全文
posted @ 2019-12-07 22:01 星空6 阅读(1226) 评论(0) 推荐(0)
posted @ 2019-12-07 22:01 星空6 阅读(1226) 评论(0) 推荐(0)
posted @ 2019-12-07 17:39 星空6 阅读(477) 评论(0) 推荐(0)