网站介绍:两段ip地址进行融合先判断两个ip地址段是否有交集,如果没有,直接输出;若有,则进行融合。ip = input(‘请输入两段IP地址:’)ip1, ip2 = ip.split(’,’)ip1_start, ip1_end = ip1[1:-1].split(’ ‘)ip2_start, ip2_end = ip2[1:-1].split(’ ‘)ip1_start = [int(i) for i in ip1_start.split(’.’)]ip1_end = [int(i) for i
- 链接地址:https://blog.csdn.net/houyujie123/article/details/114093084
- 链接标题:两段ip地址进行融合_HIWFS@的博客-CSDN博客
- 所属网站:blog.csdn.net
- 被收藏次数:2395
- 网站标签:两段ip地址进行融合