返回列表 发帖
回复 9# 依山居
  1. map = {}
  2. with open("a.txt","r") as f:
  3.     txt=f.read()
  4.     ip=txt.rsplit()
  5.     for l in ip:
  6.         map['.'.join(l.split('.')[:-1]+['1'])]=True
  7.     for l in map:
  8.         print(l)
复制代码
1

评分人数

TOP

返回列表