Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
圧縮ファイル内のファイル名を変更する方法はありますが、それを解凍せずにPythonで??
いいえ。PythonZipFileモジュールはそれを行う方法を提供していません。アーカイブをメモリに抽出してから、問題のファイルの新しいファイル名で書き換えることができますが、これはメモリを大量に消費し、実行したいことではありません。zipファイルのヘッダーと情報フィールドを編集できる場合がありますが、標準のPythonインターフェースには簡単な方法がありません。