Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import itertools
- ip = "10.0.*.*"
- output = [[int(x)] if x != '*' else [i for i in range(256)] for x in ip.split(".")]
- print(list(itertools.product(*output)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement