count =[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]
order ="yes"
index =-1
end =0
keywords =["1","2","3","4","5","6","1","1","1",",",",",",",".",".",",",",",",",",",",",","]
i =0while order =="yes" or order =="YES":
keywords[i]=input("input the keyword\n")
i = i +1
end = end +1
order =input("continue?yes^\n")for keyword in keywords:
index +=1
j =0
with open('C:\\Users\\Administrator\\Desktop\\1.txt') as file:for i in file:for A in i:if keyword[j]== A:
j = j +1else:
j =0if j ==len(keyword):
count[index]+=1
j =0
file.close()for index in range(0,end):print(keywords[index]+" "+str(count[index]))