PATCH在Backbone.js中保存模型属性时执行请求的正确方法是什么?
通过使用 GSpread,我从谷歌电子表格返回了一系列单元格,该电子表格的所有元素如下所示:
<Cell R1C1 'Sandero'>
Run Code Online (Sandbox Code Playgroud)
我知道如何从这里获取单元格值:
cell.value
Run Code Online (Sandbox Code Playgroud)
但我也想单独获取地址(在本例中为 R1C1)。如果我能以 (1,1) 格式(也许通过使用字典?)
你看我也需要地址,因为我稍后会用这些值声明一个图表。
我正在使用 Python 2.7 和最新的 Gspread 库。
任何帮助将不胜感激。
我是python的新手.我只是想用gspread创建一个谷歌工作表.我从这里读到了关于使用google api的信息.我从Google Developers Console下载了凭据,该凭据是json格式的文件.然后我用了这段代码
import gspread
from oauth2client.service_account import ServiceAccountCredentials
scope = ['https://spreadsheets.google.com/feeds']
credentials = ServiceAccountCredentials.from_json_keyfile_name('spreadsheet1995.json', scope)
gc = gspread.authorize(credentials)
worksheet = gc.add_worksheet(title="A worksheet", rows="100", cols="20")
Run Code Online (Sandbox Code Playgroud)
但是,'Client' object has no attribute 'add_worksheet'尽管我阅读了包含此属性的文档,但它仍然会出错.这是我遵循的链接.请帮我解决这个问题.