【发布时间】:2020-09-30 13:03:21
【问题描述】:
我需要每周用一些数字更新 Google 表格中的日历。 我正在使用 pygsheets find 来查找日期,但是我无法获取该单元格的列,因此我可以更新该列中的一些行。
enter code here
for key in list:
sheet_name = list[key]
print(sheet_name)
# Access the sheet
sheet = report.worksheet_by_title(sheet_name)
header = sheet.find(first_day_period)
print(header)
[<Cell H2 '21 Sep 2020'>]
find 返回的是一个单元格列表,但如果不拆分结果,然后使用它来查找单元格,我就无法访问该列。我想知道是否有更简单、更清洁的方法。
【问题讨论】:
标签: python google-sheets pygsheets