【发布时间】:2020-03-21 20:53:56
【问题描述】:
我正在使用 append_row 将数据添加到谷歌工作表......我不明白为什么会这样
#the code
def write_to_dangersheet(flow):
credentials_file = "file.json"
scope = ['https://spreadsheets.google.com/feeds',
'https://www.googleapis.com/auth/drive']
credentials = ServiceAccountCredentials.from_json_keyfile_name(credentials_file, scope)
gc=gspread.authorize(credentials)
test_wb=gc.open_by_key('yyyyyyyyyyyyyy').worksheet('betaflow')
f=[phonenumber,date," ",flow,]
if flow=='webhook-test':
test_wb.append_row(f)
write_to_dangersheet(flow)
【问题讨论】:
-
不幸的是,您的脚本无法复制您的问题。那我能问一下复制问题的详细方法吗?
-
查看我在 gspread 问题中的回复:github.com/burnash/gspread/issues/735