1 2 3 4 5 6 7 8
#!/usr/bin/env python3 import netifaces if __name__ == '__main__': interfaces = netifaces.interfaces() print(" ".join(interfaces))