📜  python3 netifaces 获取当前接口 - Python 代码示例

📅  最后修改于: 2022-03-11 14:45:09.776000             🧑  作者: Mango

代码示例1
>>> import netifaces
>>> def_gw_device = netifaces.gateways()['default'][netifaces.AF_INET][1]