问题
Is there a way that Python 3 can tell me about network state of my machine? Specifically:
- The SSID that my machine is currently connected to.
- Internet connectivity state
- Uptime/Downtime
Most important for my use case is the SSID, but the others are nice to have too.
I've seen implementations online that run external programs, and I've seen the netifaces package, but it doesn't seem to be able to query the SSID.
来源:https://stackoverflow.com/questions/35706483/how-would-i-find-the-ssid-of-a-network-in-python-3