【发布时间】:2023-03-28 01:15:02
【问题描述】:
我想使用 list.txt 从批量 IPrange 或 CIDR 中解析/提取 IP
喜欢iprange:
1.0.0.0-1.255.255.255
2.0.0.0-2.255.255.255
3.0.0.0-3.255.255.255
或 CIDR:
1.0.16.0/20
1.0.64.0/18
1.1.64.0/18
到 IP
作为 output.txt :
1.10.40.10
10.10.40.10
3.10.40.10
【问题讨论】:
标签: python python-3.x python-2.7