
エントリーの編集

エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
複数の圧縮ファイルを解凍(Python) - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています

- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
複数の圧縮ファイルを解凍(Python) - Qiita
# !/usr/bin/python # -*- coding: utf-8 -*- import io import os import glob arr = glob.glob("*7z")... # !/usr/bin/python # -*- coding: utf-8 -*- import io import os import glob arr = glob.glob("*7z") # print(arr) path_w = '7z.sh' with open(path_w, mode='w') as f: for str in arr: dir = str.replace("[GDI] ","").replace("[CDI] ","").replace(".7z","").replace("'","") tmpstr = str.replace("'","").replace(",","") os.rename("./" + str , "./" + tmpstr) try: if not os.path.exists(dir): cmds = "7z x '" + tm