X-Git-Url: http://gitweb.pimeys.fr/?a=blobdiff_plain;f=convert_dico.py;h=eef85750cccc2ab847a4fcc2e0519d28e5dceca3;hb=35bf3770d2774d62f9454b07b6df4e793ae6c133;hp=1e5d187736d37449f574b0728931fa4bbbf7ae56;hpb=c3f4e4d4a35613531475e7cfec95cf76021e8a5d;p=bots%2Fhung.git diff --git a/convert_dico.py b/convert_dico.py index 1e5d187..eef8575 100644 --- a/convert_dico.py +++ b/convert_dico.py @@ -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")