import os
import datetime
import tarfile
import fnmatch
def find_spe_file(root, patterns=['*'], non_cludedir=[]):
for root, dirnames, filenames in os.walk(root):
for pattern in patterns:
for filename in filenames:
if fnmatch.fnmatch(filename, pattern):
#print(filename)
python打包压缩指定目录下的指定类型文件
最新推荐文章于 2023-06-09 08:15:00 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)