26 lines
512 B
Python
26 lines
512 B
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
|
|
#Ouvrir un texte comme matériau brut
|
|
#Le séparer en lignes
|
|
#le séparer en mots
|
|
with open("diff.txt", "r") as source:
|
|
for line in source:
|
|
words = line.split(" ")
|
|
print(words)
|
|
|
|
#Créez un dictionnaire
|
|
permutations = {
|
|
'ph' : 'f' ,
|
|
'qu' : 'kh' ,
|
|
'y' : 'i' ,
|
|
't' : 'th' ,
|
|
'ê' : 'ai' ,
|
|
'ss' : 'ç' ,
|
|
}
|
|
|
|
'''
|
|
with open(fichier_texte, "w") as destination:
|
|
destination.write(sentence)
|
|
'''
|