python ping获取一个VLAN在线设备
myPyPingDevice.py
"""=== coding: UTF8 ==="""
# 线程池:一次性开辟一些线程,我们用户直接给线程池提交任务,线程任务的调度交给线程池来完成
from concurrent.futures import ThreadPoolExecutor
import time
import oslistIPValid = ["192.168.30.2", "192.168.30.6"]class pingHostDevice