如何使用netaddr库将ipv4子网掩码转换为cidr表示法? 例: 255.255.255.0 to /24
netaddr
255.255.255.0 to /24
python cidr
cidr ×1
python ×1