import glob import os map(os.remove, glob.glob("*.jpg "))
Is this the best
Python 3.x Must be list (map (os.remove, glob.glob ("* .jpg "))) It's pretty hard ...
list (map (os.remove, glob.glob ("* .jpg ")))
Recommended Posts