1234567891011121314151617181920212223242526 |
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- #Passer un texte en liste de mots séparés
- with open("diff.txt", "r") as source:
- for line in source:
- words = line.split(" ")
- print(words)
- #Créez un ensemble de relations
- permutations = {
- 'ph' : 'f' ,
- 'qu' : 'kh' ,
- 'y' : 'i' ,
- 't' : 'th' ,
- 'ê' : 'ai' ,
- 'ss' : 'ç' ,
- }
- def permutation_possible_mot ( mot ) :
- liste = []
- '''
- with open(fichier_texte, "w") as destination:
- destination.write(sentence)
- '''
|