欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  后端开发

怎么得到 PING 反回的的值

程序员文章站 2022-06-16 11:02:54
...
如何得到 PING 反回的的值
如何得到 PING 反回的的值

文件 1.txt 内容是PING内容
Pinging www.qq.com [14.17.32.211] with 32 bytes of data:
Reply from 14.17.32.211: bytes=32 time=20ms TTL=53
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53
Reply from 14.17.32.211: bytes=32 time=12ms TTL=53
Reply from 14.17.32.211: bytes=32 time=13ms TTL=53
Reply from 14.17.32.211: bytes=32 time=12ms TTL=53
Ping statistics for 14.17.32.211:
Packets: Sent = 10, Received = 10, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
Minimum = 12ms, Maximum = 20ms, Average = 13ms

要用什么代码,得到 Pinging (*值)[*值] with 32 bytes of data: (想得到 www.qq.com和14.17.32.211 )
最后再得到
Sent =*值
Received =*值
Lost =*值
Minimum =*值
Maximum =*值
Average = *值
PING

网友评论

文明上网理性发言,请遵守 新闻评论服务协议

我要评论
  • 怎么得到 PING 反回的的值
  • 专题推荐

    作者信息
    怎么得到 PING 反回的的值

    认证0级讲师

    推荐视频教程
  • 怎么得到 PING 反回的的值javascript初级视频教程
  • 怎么得到 PING 反回的的值jquery 基础视频教程
  • 视频教程分类