LoginSignup
0
0

More than 1 year has passed since last update.

Zipファイル展開_Python

Last updated at Posted at 2022-02-10

Zipファイルを 全て展開するプログラムを、Webページを参考に書きました。
忘備録です。^^

import zipfile
import glob

for name in glob.glob('*.zip'): # すべてのzipファイルを検索
    print(name)
    with zipfile.ZipFile(name, 'r')as f:
        f.extractall('./test') # testフォルダに解凍

たちまち動きを確認しただけですので、
バグ等ございましたら、
ご連絡ください。

( 必要に応じて、順次バージョンアップ予定です :)

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0