Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- for filename in os.listdir('./'):
- if filename.endswith(".png"):
- name, suffix = os.path.basename(filename).split('.')
- label, index = name.split('-')
- print(label, index)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement