返す関数を書くのを手伝ってくれませんか:
dict("file1.txt": list(<contents of file1>),
"file2.txt": list(<contents of file2>),
"file3.txt": list(<contents of file3>),
"file4.txt": list(<contents of file4>))
入力時:
file.zip:
outer\
outer\inner1.zip:
file1.txt
file2.txt
outer\inner2.zip:
file3.txt
file4.txt
私の試み(以下の例外を除く):
-
WindowsError: [エラー 32] 別のプロセスで使用されているため、プロセスはファイルにアクセスできません
-
「ファイルはzipファイルではありません」
-
「ファイルはzipファイルではありません」
-
AttributeError: ZipFile インスタンスに属性 'seek' がありません