Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- f = open(r"C:UsersguilgigDesktoptest.txt", "w")
- with open(r'C:UsersguilgigDesktopRespostas.txt') as stream:
- for line in stream:
- for word in ['(Cliente',
- 'Anten',
- 'COnhec',
- 'ANUIDA',
- 'ANUIDAD',
- 'ANUIDADE',
- 'ANUIDADE)',
- 'anuidade,',
- 'anuidade,vcs',
- 'anuidade.',
- 'ANUIDADES',
- 'ANUIDADR6',
- 'POUCOS(EMPRESARIOS']:
- if word.lower() in line.lower():
- a = (line.strip(), '¬', word +'n')
- arquivo.write(str(a))
- break
- arquivo.close()
- ('2701¬ SEMPRE QUE PRECISEI FUI ATENDIDO COM ATENAO', '¬', 'ATENDn')('6913¬ conhecimento', '¬', 'CONHECIn')('11607¬ Atendimento noturno. atencioso e competente !', '¬', 'atencin')('13286¬ OTIMO ATENDIMENTO', '¬', 'ATENDn')('14747¬ E pq eu estou satisfeito . sendo Cliente.', '¬', 'Clienten')
- ('2701¬ SEMPRE QUE PRECISEI FUI ATENDIDO COM ATENAO', '¬', 'ATENDn')
- ('6913¬ conhecimento', '¬', 'CONHECIn')
- ('11607¬ Atendimento noturno. atencioso e competente !', '¬', 'atencin')
- ('13286¬ OTIMO ATENDIMENTO', '¬', 'ATENDn')
- ('14747¬ E pq eu estou satisfeito . sendo Cliente.', '¬', 'CLienten')
Add Comment
Please, Sign In to add comment