Guest User

Untitled

a guest
Mar 22nd, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. 162.0000
  2. 162.2000
  3. 162.4000
  4. 162.6000
  5. 162.8000
  6. 162.0000
  7. 162.2000
  8. 162.4000
  9. 162.6000
  10. 162.8000
  11.  
  12. 162.0000
  13. 162.2000
  14. 162.4000
  15. 162.6000
  16. 162.8000
  17.  
  18. pattern=re.compile(r'(1[6][2].[0-9][0]+)')
  19. if pattern.search(line):
  20. print line
  21.  
  22. import re
  23. final_values = set(re.findall('d+.d+', open('filename.txt').read()))
Add Comment
Please, Sign In to add comment