fnamtch就是filenamematch, 在python中利用符合linuxshell风格的匹配模块来进行文件名的匹配筛选工作。 我主要用到,或者其他地方看到的有两种方法: 1:fnmatch.fnmatch(name,pattern)