如何使用Python和google-sheets api使Google工作表的第一行加粗。
我使用了这个:
{
"requests":[
{
"repeatCell":{
"range":{
"sheetId":0,
"startRowIndex":0,
"endRowIndex":1
},
"cell":{
"userEnteredFormat":{
"textFormat":{
"bold":true
}
}
},
"fields":"userEnteredFormat.textFormat.bold"
}
}
]
}但是这个粗体面向整个单元格。
发布于 2018-11-14 16:49:42
像这样修改你的代码:
{
"requests":[
{
"repeatCell":{
"range":{
"endRowIndex":1
},
"cell":{
"userEnteredFormat":{
"textFormat":{
"bold": true
}
}
},
"fields":"userEnteredFormat.textFormat.bold"
}
}
]
}这将使工作表的第一行加粗。有关更多信息,请阅读Google中关于range的文档。
https://stackoverflow.com/questions/53288389
复制相似问题