首页 > TAG信息列表 > cmdStr

批量ping IP

# 批量ping IP import argparse import os import platform import time def PingCmd(): cmdStr = '' if platform.system()=='Linux': cmdStr = 'ping -c 1 %s > /dev/null' else: cmdStr = 'ping -n 1 %