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
本文标题:glob
本文链接:https://www.haomeiwen.com/subject/qwadixtx.html
网友评论