Update cell background color for google spreadsheet using python

前端 未结 2 1080
失恋的感觉
失恋的感觉 2020-12-21 13:16

I wanna use google api to update the background color of a cell in a spreadsheet with batchupdate function. https://developers.google.com/sheets/api/reference/r

2条回答
  •  鱼传尺愫
    2020-12-21 13:45

    You can use simple basic format for changing background color of the cell :

    worksheet.format("A2:B2", {
        "backgroundColor": {
          "red": 0.0,
          "green": 0.0,
          "blue": 0.0
        }
    

提交回复
热议问题