You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

9 lines
239B

  1. import subprocess
  2. result = subprocess.check_output(['netsh', 'wlan', 'show', 'network'])
  3. result = result.decode('gbk')
  4. lst = result.split('\r\n')
  5. lst = lst[4:]
  6. for index in range(len(lst)):
  7. if index % 5 == 0:
  8. print(lst[index])