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