Ajout de l'option "no double"
This commit is contained in:
parent
ebea271d49
commit
8b9175454b
@ -96,8 +96,8 @@ klFilter = []
|
|||||||
blFilter = []
|
blFilter = []
|
||||||
ftFilter = []
|
ftFilter = []
|
||||||
|
|
||||||
# Fonction d'élimination de mots contenant plusieurs occurences de lettres
|
|
||||||
def noDouble(mots):
|
def noDouble(mots):
|
||||||
|
# Fonction d'élimination de mots contenant plusieurs occurences de lettres
|
||||||
ndList = []
|
ndList = []
|
||||||
for mot in mots:
|
for mot in mots:
|
||||||
llist = []
|
llist = []
|
||||||
@ -200,6 +200,8 @@ if __name__ == "__main__":
|
|||||||
liste = load_dict(args.dictionary)
|
liste = load_dict(args.dictionary)
|
||||||
liste = resolv_len(liste, nb)
|
liste = resolv_len(liste, nb)
|
||||||
liste = resolv_fl(liste, fl)
|
liste = resolv_fl(liste, fl)
|
||||||
|
if args.noDoubleLetters:
|
||||||
|
liste = noDouble(liste)
|
||||||
if len(liste) > 1:
|
if len(liste) > 1:
|
||||||
print(liste)
|
print(liste)
|
||||||
print(f"Il y a {len(liste)} mots dans la liste")
|
print(f"Il y a {len(liste)} mots dans la liste")
|
||||||
|
Loading…
Reference in New Issue
Block a user