Pythonは標準でもかなり多くのライブラリを備えている。今回は標準ライブラリの中でも普段から使って便利な圧縮解凍パッケージのzipfileを使ってみよう。Pythonを使えばZIPファイルが100個あったとしても数行のプログラムを書くだけで全部解凍できる。
Following up from last week's article on reading zip archives, we show you how you can create your own archives using Python. Following up from last week’s article on reading zip archives, we show you ...
昨今、ZIPファイルの圧縮解凍はOSの標準機能に搭載されるようになった。そのため、複数ファイルを先方に送りたい場合、ZIP圧縮して送信することも多いだろう。そして、送信相手が複数いる場合、手作業で圧縮するのは面倒な作業となる。Pythonで自動化し ...
For example, I'd like to be able to install a pip upgrade and other packages inside the ape archive: $ ./python -m pip install --upgrade pip Defaulting to user ...