用小工具ping.py测试距离您最快的节点 #!/usr/bin/env python # coding: utf-8 """ A pure python ping implementation using raw sockets. Note that ICMP messages can only be send from processes running as root (in Windows, you must run this script as 'Administr
def ip_and_time(): """ get ip to ping from ip.txt then return two list , each ip that ping successfully and the delay time of them :return """ time_list, ip_list = [], [] ip_txt = open('ip.txt', 'w') ip_success, ip_fail = 0,