标签: python networking netmask
我想使用 netaddr 库将网络掩码转换为通配符掩码
所以输入为netmask = 255.255.255.0,输出为wilcard = 0.0.0.255
netmask = 255.255.255.0
wilcard = 0.0.0.255
或输入为netmask = 255.255.255.252,输出为wilcard = 0.0.0.3
netmask = 255.255.255.252
wilcard = 0.0.0.3
非常感谢