Guest User

Untitled

a guest
Jun 22nd, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.16 KB | None | 0 0
  1. import os, re
  2.  
  3. files = os.listdir (".")
  4.  
  5. for file in files:
  6. result = re.search('_Lx_([0-9]+)_Ly_([0-9]+)_', file)
  7. if result:
  8. lx, ly = result.groups ()
Add Comment
Please, Sign In to add comment