nq1s788

13 найти маску (ipaddress)

Jan 31st, 2026
137
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.17 KB | None | 0 0
  1. from ipaddress import *
  2. for mask in range(1, 33):
  3.     net = ip_network('115.181.80.0/' + str(mask), 0)
  4.     if ip_address('115.181.92.48') in net:
  5.         print(net.netmask)
Advertisement
Add Comment
Please, Sign In to add comment