python 匹配指定后缀的文件名

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

原文地址:https://www.cnblogs.com/sea-stream/p/10006217.html