|
自己写的一个
- import os
- import py7zr
- j = 0
- for lujing,liebiao,wenjian in os.walk('G:\BaiduNetdiskDownload\'):
- for i in wenjian:
- k = lujing+'\\'+i
- print(k)
- j = j+1
- with py7zr.SevenZipFile(k, mode='r', password='密码') as z:
- z.extractall(lujing)
复制代码 下面加一句os.remove(k)在for循环中,可以在解压后删除文件
|
|