python - 如何使用 python 从谷歌驱动器访问本地文件?
问题描述
我正在使用 Google Drive 上的Google colaboratory notebook。我想编写 Python 代码来访问我的本地磁盘以读取一些文件。
有没有办法做到这一点?
解决方案
尝试本地运行时: http ://research.google.com/colaboratory/local-runtimes.html
或者,请参阅此示例笔记本以了解文件共享方法: https ://colab.research.google.com/notebooks/io.ipynb
推荐阅读
- javascript - Javascript 数组从练习开始
- azure - 使用 Azure KeyVault 引用时出现 InvalidSyntax 错误
- java - 将 RabbitListenerExceptionHandler 与 Micronaut 全局 ExceptionHandler 映射
- mongodb - Typegoose 和 Mongoose - 保存模式类型的嵌套列表时,转换为 ObjectId 的值失败
- ios - 让麦克风忽略来自 AVSpeechSynthesizer 的音频
- r - 在ggplot中删除geom_area周围的边框
- amcharts - amchart4 跳过数据中的列
- python - Beautifulsoup 网页抓取丢失的表格
- javascript - 使用 sass 修改 react-bootstrap 的正确方法是什么?
- c# - 使用 ASP.NET MVC 显示条形图