Differance_dictionnaire~20171216-185724.py 539 B

1234567891011121314151617181920212223242526
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #Passer un texte en liste de mots séparés
  4. with open("diff.txt", "r") as source:
  5. for line in source:
  6. words = line.split(" ")
  7. print(words)
  8. #Créez un ensemble de relations
  9. permutations = {
  10. 'ph' : 'f' ,
  11. 'qu' : 'kh' ,
  12. 'y' : 'i' ,
  13. 't' : 'th' ,
  14. 'ê' : 'ai' ,
  15. 'ss' : 'ç' ,
  16. }
  17. def permutation_possible_mot ( mot ) :
  18. liste = []
  19. '''
  20. with open(fichier_texte, "w") as destination:
  21. destination.write(sentence)
  22. '''