mirror of
https://github.com/ookangzheng/blahdns.git
synced 2025-12-13 12:45:37 +07:00
11 lines
271 B
Python
Executable File
11 lines
271 B
Python
Executable File
import os
|
|
|
|
inputFile = "gravity.list"
|
|
outputFile = "rpz.txt"
|
|
|
|
with open(inputFile, 'r') as f: # load file
|
|
lines = f.read().splitlines() # read lines
|
|
os.remove("rpz.txt")
|
|
with open(outputFile, 'w') as f:
|
|
f.write('\n'.join([line + ' CNAME .' for line in lines]))
|