首页 > 其他 > 详细

Google Colab 基本操作

时间:2019-02-25 13:50:47      阅读:241      评论:0      收藏:0      [点我收藏+]

## 上传

from google.colab import files

uploaded = files.upload()

for fn in uploaded.keys():
  print(User uploaded file "{name}" with length {length} bytes.format(
      name=fn, length=len(uploaded[fn])))

 

## 下载

from google.colab import files

with open(example.txt, w) as f:
  f.write(some content)

files.download(example.txt)

 

Google Colab 基本操作

原文:https://www.cnblogs.com/clemente/p/10430488.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!