Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/307.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 将img从Colab上传到Google Drive文件夹_Python_Matplotlib_Google Colaboratory_Drive - Fatal编程技术网

Python 将img从Colab上传到Google Drive文件夹

Python 将img从Colab上传到Google Drive文件夹,python,matplotlib,google-colaboratory,drive,Python,Matplotlib,Google Colaboratory,Drive,这应该是相当直接的,但我已经搜索了几个小时,我没有实现这一点 我正在尝试将我在Google Colab中生成的一个简单matplotlib图形保存到Google Colab文件夹中,然后将其上载到我的Google驱动器中的一个文件夹中 我在这里查阅了文件: 还有许多其他类似的答案: 但却无法完成 有人能提供一个完整的例子吗?您是否尝试过将Google drive安装到您的Colab笔记本上```从google.colab import drive drive.mount('/gdrive')

这应该是相当直接的,但我已经搜索了几个小时,我没有实现这一点

我正在尝试将我在Google Colab中生成的一个简单matplotlib图形保存到Google Colab文件夹中,然后将其上载到我的Google驱动器中的一个文件夹中

我在这里查阅了文件:

还有许多其他类似的答案:

但却无法完成


有人能提供一个完整的例子吗?

您是否尝试过将Google drive安装到您的Colab笔记本上```从google.colab import drive drive.mount('/gdrive')详细介绍了将笔记本连接到谷歌硬盘的多种方法。您可以自行安装驱动器、使用pyDrive包装器或REST API您是否尝试过将Google驱动器安装到Colab笔记本上```从google.colab import drive drive.mount('/gdrive')详细介绍了将笔记本连接到谷歌硬盘的多种方法。您可以自行装载驱动器、使用pyDrive包装器或RESTAPI