lst_Incor = []
for i in range(250):
if get_cell_value_by_column_id(sheet_Source.rows[i],450382123898xxxx) == 'Incorporating US Markup':
response = smart.Cells.get_cell_history(
SheetId_Source, # sheet_id
sheet_Source.rows[i].id, # row_id
450382123898xxxx, # column_id
include_all=True)
revisions = response.data
lst_Incor.append(str(revisions[0].modified_at)[:10])
else:
lst_Incor.append('')
print(lst_Incor)
我使用上面的代码来检查单元格的历史记录并检索它们各自的日期。虽然代码在 Python 文件中运行顺利,但我在运行由 pysintaller 转换的 exe 文件时遇到了问题。 exe 文件不起作用。错误消息表明“str”对象在控制台窗口中没有属性“get_cell_history”
不知道原因
非常感谢大家