<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>round-rand</author_name>
  <author_url>https://blog.hatena.ne.jp/round-rand/</author_url>
  <blog_title>ランドML</blog_title>
  <blog_url>https://ml-rand-note.hatenablog.com/</blog_url>
  <categories>
    <anon>Colaboratory</anon>
  </categories>
  <description>はじめに Pythonでのコード実行時にファイルの入出力は割と頻繁にします。 Google Colaboratoryで入出力をする場合はfiles.upload()で直接ファイルをアップロードもできますが、Googleドライブをマウントするのが一般的です。 これらのコードについて忘れることが多かったので、まとめておきます。 ↓↓参考 colab.research.google.com Googleドライブのマウント方法 from google.colab import drive drive.mount('/content/drive') 上記コードを実行すると、画面が以下のように変わるので順…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fml-rand-note.hatenablog.com%2Fentry%2Fgoogle-colab%2Fmount-google-drive&quot; title=&quot;【Google Colaboratory】Googleドライブのマウント方法 - ランドML&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/r/round-rand/20260301/20260301211807.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2026-03-02 00:00:00</published>
  <title>【Google Colaboratory】Googleドライブのマウント方法</title>
  <type>rich</type>
  <url>https://ml-rand-note.hatenablog.com/entry/google-colab/mount-google-drive</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
