while True:
text = input("Please enter the whole or part of a city's name(Quit() to quit):")
if text != 'Quit()':
with open('C:/Users/clw31/Desktop/test.txt') as f:
s = f.read().lower()
if s.find(text) != -1:
print('你想输出的内容')
else:
print('Not found!')
else:
exit()