glob
2017-12-07 本文已影响2人
梁新彦
Match files using the patterns the shell uses, like stars and stuff.
import glob
for name in glob.glob('dir/*[0-9].*'):
print name
Match files using the patterns the shell uses, like stars and stuff.
import glob
for name in glob.glob('dir/*[0-9].*'):
print name