使い方をよく忘れるので備忘録。 1. Google Driveのマウントfrom google.colab import drive drive.mount('/content/drive')2. Google DriveからGoogle Colabへのファイルのコピー以下はGoogle Driveにある「sample.zip」をGoogle Colabにコピーして解凍する例。 !cp /content/drive/My\ Drive/sample.zip . !unzip sample.zip3. Google ColabからGoogle Driveへのファイルのコピー以下はGoogle Colabにある「sample」フォルダを圧縮してGoogle Driveにコピーする例。 !zip -r sample.zip sample !cp logs/sample.zip /content/