sick_file_update_must_see.mp4
This commit is contained in:
parent
aa695f993d
commit
9c7fbaa54b
@ -5,24 +5,20 @@ instructionsfile = open('instructions.txt', 'r')
|
||||
|
||||
def commandStrip(sentence):
|
||||
for line in dotsfile:
|
||||
line=line.strip('\n').replace(line, "")
|
||||
line = line.strip('\n').replace(line, "")
|
||||
return sentence
|
||||
|
||||
def searchKeyWords(sentence):
|
||||
found = []
|
||||
for line in wantedfile:
|
||||
line=line.strip('\n')
|
||||
if sentence.find(line) >= 0:
|
||||
found.append(line)
|
||||
|
||||
if found:
|
||||
return found
|
||||
return 1
|
||||
if sentence.find(line.strip('\n')) >= 0:
|
||||
found.append(line.strip('\n'))
|
||||
return found
|
||||
|
||||
def saveKeyWords(array):
|
||||
for line in array:
|
||||
keywordsfile.write(line)
|
||||
keywordsfile.write("\n")
|
||||
if line != '':
|
||||
keywordsfile.write(line + '\n')
|
||||
|
||||
saveKeyWords(searchKeyWords(commandStrip(instructionsfile.read())))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user