gpt4 book ai didi

python - Google Python API 电子表格行/列计数

转载 作者:太空宇宙 更新时间:2023-11-04 06:35:41 25 4
gpt4 key购买 nike

问题是,我可以检索列数吗?我的意思是,我可以使用这个获取工作表提要:

feed = self.gd_client.GetWorksheetsFeed( self.spreadsheet_id )

然后取它的 <ns1:rowCount><ns1:colCount>标记值,但有没有办法直接检索它?喜欢feed.entry[ number ].rowCount还是什么?

最佳答案

我相信这会成功

num_rows = int( feed.entry[ number].row_count.text )

关于python - Google Python API 电子表格行/列计数,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11561639/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com