如何使用Python 3.6中的单元格值获取gspread中单元格的坐标

0 python gspread google-sheets-query

我有一个单元格的值,我想知道 Gspread 中单元格的坐标。

假设我的日期是“12-11-2017”。如何找到具有该日期的单元格的坐标?我正在使用 python 3.6 和 Gspread

Jon*_* C. 6

尝试这个 :

cell = worksheet.find("12-11-2017") #Find a cell with exact string value
print("Text found at R%sC%s" % (cell.row, cell.col))
Run Code Online (Sandbox Code Playgroud)

文档可能是找到您需要的内容的好方法