1. install python dev

sudo apt-get install python-dev

2.download src code and install

https://pypi.python.org/pypi/netifaces/

2.get ip,mac,netmask,gateway

import netifaces

netifaces.interfaces()

netifaces.gateways()

https://pypi.python.org/pypi/netifaces

 

相关文章:

  • 2021-07-23
  • 2021-05-06
  • 2021-11-10
  • 2021-07-04
  • 2021-08-09
  • 2022-02-17
  • 2021-08-09
  • 2021-11-08
猜你喜欢
  • 2021-08-29
  • 2021-06-20
  • 2021-10-31
  • 2022-03-03
  • 2021-07-23
  • 2021-04-25
  • 2021-04-08
相关资源
相似解决方案