X-Git-Url: http://gitweb.pimeys.fr/?p=bots%2Fhung.git;a=blobdiff_plain;f=convert_dico.py;h=eef85750cccc2ab847a4fcc2e0519d28e5dceca3;hp=1e5d187736d37449f574b0728931fa4bbbf7ae56;hb=acc319d09be7725bbf150b2d97c9716d7cc5a1f6;hpb=c3f4e4d4a35613531475e7cfec95cf76021e8a5d 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")