📜  获取文件中的文件 zip python 代码示例

📅  最后修改于: 2022-03-11 14:46:44.096000             🧑  作者: Mango

代码示例1
from zipfile import ZipFile
import os
def getfilespath(filename):
    dir = os.path.dirname(__file__)
    return os.path.join(dir, filename) 
path =  getfilespath("bbc-fulltext.zip")
archive = ZipFile(path, 'r')
files = archive.namelist()