基础部分说明请看:
https://www.jianshu.com/p/000d2a9d36a0
前面没什么问题,后面出现下列错误导致无法执行:
/bin/bash: google-drive-ocamlfuse: command not found
于是Google之,Colab文档写的清楚:
Mounting Google Drive locally
https://colab.research.google.com/notebooks/io.ipynb#scrollTo=u22w3BFiOveA
我的示例代码如下:
from google.colab import
drive drive.mount('/content/gdrive')
!ls -lh /content/gdrive
import os
os.chdir("/content/gdrive/My Drive/Colab")
!python mnist_cnn.py
网友评论