0
1

More than 3 years have passed since last update.

僕のshutil(Python)

Last updated at Posted at 2019-12-13

自分用のまとめ
随時更新

自分がわかればいいからところどころ用語が間違ってるかも

!見方

#コマンド
    #引数のオプションの説明

pyautoguiって何に使うの?

これもos.path同様ディレクトリ操作

モジュール読み込み

import shutil

頻出操作

#フォルダのコピー
shutil.copytree()
    #第一引数のフォルダを中身ごと第二引数のパスにコピー
    #第二引数のフォルダは存在するとコピーできない。

#フォルダの削除、中身のあるなしは関係ない。
shutil.rmtree()
   #引数のフォルダを削除。 
0
1
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
1