parent
1ef3a75466
commit
5d3a17467a
@ -0,0 +1,19 @@
|
||||
from db import *
|
||||
|
||||
mode = input('mode: ')
|
||||
|
||||
words = []
|
||||
while True:
|
||||
temp = input()
|
||||
if temp == 'exit':
|
||||
break
|
||||
else:
|
||||
words.append(temp)
|
||||
|
||||
db = read()
|
||||
db[mode] = db[mode] + words
|
||||
write(db)
|
||||
|
||||
print("--------------")
|
||||
print("ADDED")
|
||||
print("--------------")
|
Loading…
Reference in new issue