python glob删除目录下的文件 使用glob匹配目录下的文件 import os import glob path="./" for infile in glob.glob(os.path.join(path,"*.Result.xls")): os.remove(infile)