import os
import zipfile

#Specify the directory to traverse the first-level folder
for dirName in os.listdir('./rar/data'):
     inputPath = os.path.join('./rar/data', dirName)
     outputPath = os.path.join('./rar/zip', dirName +'.zip')
     zipDir(inputPath,outputPath)

点赞(0)

评论列表 共有 0 评论

暂无评论

微信服务号

微信客服

淘宝店铺

support@elephdev.com

发表
评论
Go
顶部