python 匹配指定后缀的文件名

 

import glob
x=glob.glob('*.py')
print(x)

 

posted @ 2018-11-23 11:01  anobscureretreat  阅读(3735)  评论(0)    收藏  举报