Answers for "python ip address is subnet of"

0

python ip address is subnet of

>>> import ipaddress
>>> ipaddress.ip_address('192.168.0.1') in ipaddress.ip_network('192.168.0.0/24')
True
Posted by: Guest on April-30-2021

Python Answers by Framework

Browse Popular Code Answers by Language