27 lines
539 B
Python
27 lines
539 B
Python
#!/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)
|
|
'''
|