]> gitweb.pimeys.fr Git - bots/hung.git/blobdiff - convert_dico.py
Définitions avec le mot en mincuscule et ses accents
[bots/hung.git] / convert_dico.py
index 1e5d187736d37449f574b0728931fa4bbbf7ae56..eef85750cccc2ab847a4fcc2e0519d28e5dceca3 100644 (file)
@@ -44,11 +44,8 @@ def maju(texte):
         texte=texte.replace(avant,apres)
     return texte.upper()
 
-l=[[maju(i[0]),i[1].replace("\\n","; ")] for i in l 
+l=[[maju(i[0]),i[0]+" : "+i[1].replace("\\n","; ")] for i in l 
     if len(i[0])>=8 and not " " in i[0]]
-print l[0]
-print l[1]
-print l[2]
 
 f1=open("mots.txt.out","w")
 f2=open("definitions.txt.out","w")