#coding=utf-8

import re
import subprocess

def tracertIP(ip):
  p = subprocess.Popen(['tracert',ip],stdout=subprocess.PIPE)
  while True:
    line = p.stdout.readline()
    if not line:
      break
    print line

tracertIP('192.168.2.1')

 

相关文章:

  • 2022-01-24
  • 2022-01-01
  • 2021-12-15
  • 2022-12-23
  • 2022-12-23
  • 2021-11-29
  • 2021-12-18
  • 2021-12-05
猜你喜欢
  • 2021-09-28
  • 2021-07-31
  • 2021-07-18
  • 2022-12-23
  • 2022-02-11
  • 2021-10-07
相关资源
相似解决方案