其他分享
首页 > 其他分享> > Google Colab 基本操作

Google Colab 基本操作

作者:互联网

## 上传

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')

 

标签:uploaded,files,Google,##,length,google,Colab,基本操作,fn
来源: https://www.cnblogs.com/clemente/p/10430488.html