algN/test/wifi/test.py

9 lines
239 B
Python
Raw Normal View History

2025-08-23 10:12:26 +08:00
import subprocess
result = subprocess.check_output(['netsh', 'wlan', 'show', 'network'])
result = result.decode('gbk')
lst = result.split('\r\n')
lst = lst[4:]
for index in range(len(lst)):
if index % 5 == 0:
print(lst[index])