index.py 289 B

123456789101112131415161718
  1. phones = []
  2. start = False
  3. ls = open("diph.est").read().split("\n")
  4. for l in ls:
  5. if(len(l)):
  6. if start:
  7. dp = l.split(" ")[0]
  8. p2 = dp.split("-")
  9. for p in p2:
  10. if not p in phones:
  11. phones += [p]
  12. if "EST_Header_End" in l:
  13. start = True
  14. for p in phones:
  15. print(p+" "+p)