【问题标题】:Google Python API spreadsheet row /column countGoogle Python API 电子表格行数/列数
【发布时间】:2012-07-19 13:12:57
【问题描述】:

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

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

并取它的<ns1:rowCount><ns1:colCount> 标签值,但有没有办法直接检索它?比如feed.entry[ number ].rowCount 什么的?

【问题讨论】:

    标签: python google-docs-api google-spreadsheet-api


    【解决方案1】:

    我相信这会奏效

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

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2019-04-18
      • 2023-03-23
      • 1970-01-01
      • 2021-01-26
      • 1970-01-01
      • 2015-01-04
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多