[英]Insert a list into google sheets using gspread
列表= [['Akbar',1,34],['lata',1,56],['sita',5,45]]
我希望將此列表插入為
cell_list = worksheet.range('A1:C7')
for cell in cell_list:
cell.value = 'O_o'
# Update in batch
worksheet.update_cells(cell_list)
gspread 3.0.1文檔中提到了這一點,是否有直接之處? 像以前的版本一樣?(3.0.0)
spread_sheet.values_update(
RANGE,
params={'valueInputOption': 'RAW'},
body={'values': list}
)
這會有所幫助嗎?
for i in range(len(your_list)):
l = your_list[i]
for j in range(len(l)):
x = l[j]
spread_sheet.update_cell(i+1,j+1,x)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.