我从这里下载了起始代码:http://goo.gl/Tcxkod,并按照说明安装了来自https://developers.google.com/api-client-library/python/start/installation的sample.py
:
alvas@ubi:~/git/UniversalCorpus/drive-cmd-line-sample$ python sample.py
Success! Now add code here.
但是我该如何将pickle/json文件转储到驱动器上,然后检索它以从Python中读取?我点击了开发文档,除了repr和源代码本身外,没有其他线索:https://developers.google.com/resources/api-libraries/documentation/drive/v2/python/latest/drive_v2.files.html#get。
collection.Counters
作为str
放入txt文件中并上传到云端,然后使用ast
读取它们。这种方法有点混乱,但基本上可以工作。 - alvas