In: Morse-Chiffre Out: Gültige Buchstabenkombinationen ("words"), Wortkombinationen aus natürlichen Sprachen ("phrases")
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

13 lines
349 B

import csv
class Dict:
def __init__(self, dictionary_path_list):
self.dictionary = []
for path in dictionary_path_list:
handler = open(path, "r")
reader = csv.reader(handler)
self.dictionary += [row[0].upper() for row in reader]
def __iter__(self):
return iter(self.dictionary)