123456789 |
- import subprocess
- n = 1
- config = subprocess.check_output(
- ['chcp', '65001', '&', 'netsh', 'interface', 'ipv4', 'show', 'config'], shell=True)
- while n != 10:
- check = config.decode('utf-8').split('Configuration for interface "Беспроводная сеть"')[1].split('\n')[n]
- print(check)
- n += 1
|