摘要: import subprocess as spurl = 'www.baidu.com'status, result = sp.getstatusoutput("ping " + url + " -w 2000")print(status)print(result)if "请求超时" in resu 阅读全文
posted @ 2021-09-13 16:40 .未央 阅读(404) 评论(0) 推荐(0) 编辑