Guest User

Untitled

a guest
Mar 20th, 2018
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.10 KB | None | 0 0
  1. f = open(r"C:UsersguilgigDesktoptest.txt", "w")
  2. with open(r'C:UsersguilgigDesktopRespostas.txt') as stream:
  3. for line in stream:
  4. for word in ['(Cliente',
  5. 'Anten',
  6. 'COnhec',
  7. 'ANUIDA',
  8. 'ANUIDAD',
  9. 'ANUIDADE',
  10. 'ANUIDADE)',
  11. 'anuidade,',
  12. 'anuidade,vcs',
  13. 'anuidade.',
  14. 'ANUIDADES',
  15. 'ANUIDADR6',
  16. 'POUCOS(EMPRESARIOS']:
  17. if word.lower() in line.lower():
  18.  
  19. a = (line.strip(), '¬', word +'n')
  20.  
  21. arquivo.write(str(a))
  22. break
  23. arquivo.close()
  24.  
  25. ('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')
  26.  
  27. ('2701¬ SEMPRE QUE PRECISEI FUI ATENDIDO COM ATENAO', '¬', 'ATENDn')
  28. ('6913¬ conhecimento', '¬', 'CONHECIn')
  29. ('11607¬ Atendimento noturno. atencioso e competente !', '¬', 'atencin')
  30. ('13286¬ OTIMO ATENDIMENTO', '¬', 'ATENDn')
  31. ('14747¬ E pq eu estou satisfeito . sendo Cliente.', '¬', 'CLienten')
Add Comment
Please, Sign In to add comment