list-1e100-all.py 362 B

123456789101112131415161718
  1. #!/usr/bin/env python3
  2. import sys
  3. def main():
  4. infile = open(sys.argv[1], 'r')
  5. hosts = infile.readlines()
  6. for line in hosts:
  7. if line[0] == '#':
  8. continue
  9. arr = line.split()
  10. for k in range(0, 32):
  11. print(arr[1][:8] + '-in-x' + hex(k)[2:].zfill(2) + '.1e100.net')
  12. if __name__ == '__main__':
  13. main()