123456789101112131415161718 |
- phones = []
- start = False
- ls = open("diph.est").read().split("\n")
- for l in ls:
- if(len(l)):
- if start:
- dp = l.split(" ")[0]
- p2 = dp.split("-")
- for p in p2:
- if not p in phones:
- phones += [p]
- if "EST_Header_End" in l:
- start = True
- for p in phones:
- print(p+" "+p)
|