mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-01-31 06:33:44 +00:00
Improvement
This commit is contained in:
parent
f68690f296
commit
21a348f0b0
|
@ -5,7 +5,7 @@ LETTERS_AND_SPACE = UPPERLETTERS + UPPERLETTERS.lower() + ' \t\n'
|
|||
|
||||
def loadDictionary():
|
||||
path = os.path.split(os.path.realpath(__file__))
|
||||
dictionaryFile = open(path[0] + '\Dictionary.txt')
|
||||
dictionaryFile = open(path[0] + '/Dictionary.txt')
|
||||
englishWords = {}
|
||||
for word in dictionaryFile.read().split('\n'):
|
||||
englishWords[word] = None
|
||||
|
|
Loading…
Reference in New Issue
Block a user