tcpping专题

【亲测有效】icmp,tcpping工具源码

icmp,tcpping工具源码 import socketimport subprocessimport platformimport timeimport sysdef icmp_ping(host, count=4):param = '-n' if platform.system().lower() == 'windows' else '-c'try:# 执行 ping 命令res