python库

glob

2017-12-07  本文已影响2人  梁新彦

Match files using the patterns the shell uses, like stars and stuff.

github

import glob
for name in glob.glob('dir/*[0-9].*'):
    print name
上一篇 下一篇

猜你喜欢

热点阅读