Advertisement
Guest User

Untitled

a guest
May 18th, 2018
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. import os
  2.  
  3. for filename in os.listdir('./'):
  4. if filename.endswith(".png"):
  5. name, suffix = os.path.basename(filename).split('.')
  6. label, index = name.split('-')
  7. print(label, index)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement