擅长:python、mysql、java
<p>尝试将<code>scope</code>变量更改为以下值:</p>
<pre><code>scope = ['https://spreadsheets.google.com/feeds',
'https://www.googleapis.com/auth/drive']
</code></pre>
<p>确保在API控制台中启用了驱动器API。</p>
<p>gspread已经升级,现在它基于API v4。虽然速度更快,但需要在作用域中进行更新。</p>
<p>这里有同样的问题:<a href="https://github.com/burnash/gspread/issues/512" rel="noreferrer">https://github.com/burnash/gspread/issues/512</a></p>