gspread sh。请不要出现在选项列表中
我正在使用Pycharm,我成功地将Gspread导入到Python(3.10)中。可以在Google Drive上更新Google表。运行良好。想要使用.share来发送电子邮件电子表格。根据文档:
sh.share('[email protected]', perm_type='user', role='writer')
应该工作,但在下拉列表中不可用。下拉列表显示了一堆项目,但没有。包含选项。我已经下载并导入了GSPREAD的最后版本。我认为.share功能可能在此版本中运行,还是我做错了什么?查看其他帮助消息,其他人正在使用SHARE。有评论吗?谢谢
I'm using PyCharm, I've imported gspread successfully into Python (3.10). Am able to update a Google sheet on Google drive.. Works well. Want to email spreadsheet using .share. According to documentation:
sh.share('[email protected]', perm_type='user', role='writer')
should work but .share not available in drop down list. The drop down list displays a whole bunch of items but no .share option. I've download and imported the lastest version of gspread. I'm thinking that the .share functionality may not be running in this version or am I doing something wrong? looking at other help messages, .share is being used by others. Any comments? Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
嗨,如果您导入了最新版本的Gspread,则(截至今天)应该是版本5.4.0,该方法的该版本的文档为:在这里
如果您在同一版本中查看代码“ https://github.com/burnash/gspread/blob/4fcad2ad3ebea34737f637f631d53f631d53ef3ce0ca719e35e/gspread/gspread/spread.pread.pleadsheet.pypeadsheet.py#l475” >。但它在
电子表格
对象中。因此应该像这样使用:
Hi if you have imported the latest version of gspread then (as of today) it should be version 5.4.0 and the documentation for that version for that method is: here
If you look at the code in the same version it is: here too and the method is called
share
. But it is in thespreadsheet
object.So it should be used like this: