首页 > 解决方案 > 如何使用 python 从谷歌驱动器访问本地文件?

问题描述

我正在使用 Google Drive 上的Google colaboratory notebook。我想编写 Python 代码来访问我的本地磁盘以读取一些文件。

有没有办法做到这一点?

标签: pythongoogle-colaboratory

解决方案


尝试本地运行时: http ://research.google.com/colaboratory/local-runtimes.html

或者,请参阅此示例笔记本以了解文件共享方法: https ://colab.research.google.com/notebooks/io.ipynb


推荐阅读