如何使用python从谷歌驱动器访问本地文件?

时间:2023-01-26 22:01:49

I'm working on Google colaboratory notebook on Google Drive. I want to write Python code to access my local disk to read some files.

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

Is there a way to do that?

有没有办法做到这一点?

1 个解决方案

#1


0  

Try local runtimes: http://research.google.com/colaboratory/local-runtimes.html

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

Or, see this example notebook for file sharing recipes: https://colab.research.google.com/notebooks/io.ipynb

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

#1


0  

Try local runtimes: http://research.google.com/colaboratory/local-runtimes.html

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

Or, see this example notebook for file sharing recipes: https://colab.research.google.com/notebooks/io.ipynb

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