📜  python zip 文件以文本形式打开 - Python 代码示例

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

代码示例1
with ZipFile('spam.zip') as myzip:
    with myzip.open('eggs.txt') as myfile:
       eggs = io.TextIOWrapper(myfile)