commited all contents created by participants
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
#!/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)
|
||||
'''
|
||||
Reference in New Issue
Block a user