首页 > 解决方案 > 如何将 google colab 中的集群文件保存到 Google Drive

问题描述

我有cluster_Modelcolab的模型制作 220 个CSV文件,我想自动保存到我的google Drive 我该怎么做?

标签: pythongoogle-colaboratory

解决方案


我没有找到最好的方法,但这对我有用

from google.colab import files

for k in range(211, 221):
    fileName = 'cluster'+ str(k) +'.csv' // this is the file name
    files.download(fileName)

推荐阅读