我有一个带有数据的google工作表,但它每天都有一个问题,我必须输入数据(相同类型的数据),有人知道如何使用python在google工作表中添加数据,请帮助我
我有那个类型的结果,它是字符串
print(time, " ", todayMaxProfit, " ", todayMaxLoss, " ", pl, " ", len(
orderList), " First pair sum:- ", int(orderList[0][4]+orderList[1][4]))
"2021-08-18 15:00:00 [1451, '2021-08-18 11:07:00'] [-10203, '2021-08-18 14:45:00'] -6900 2 First pair sum:- 234"
最后我想添加数据
如何使用Python将值附加到Google电子表格。
按照quickstart进行设置。确保您完全按照所有步骤操作!对于开始使用API的每个项目,您都需要这样做,因此您最好按照此处的说明进行操作。确保在继续之前获得预期的输出
然后,您可以修改快速启动,使获取
service
成为一个单独的函数:请注意
values
必须采用的格式是二维列表:使用^{} 方法,只需按原样将行添加到工作表的末尾。
append
有几个参数:id
A1
到底部填充了数据,则可以将其保留为A1
,或者如果有标题或空格,可以保留为C5
。其思想是将API指向要附加到的数据集合李>参考文献
您好,您可以尝试pygsheets,它工作良好,易于使用
相关问题 更多 >
编程相关推荐