擅长:python、mysql、java
<p>找到一个不同的<a href="https://developers.google.com/sheets/api/reference/rest/v4/spreadsheets.values/clear" rel="noreferrer">method</a>:</p>
<pre><code>rangeAll = '{0}!A1:Z'.format( sheetName )
body = {}
resultClear = service.spreadsheets( ).values( ).clear( spreadsheetId=spreadsheet_id, range=rangeAll,
body=body ).execute( )
</code></pre>
<p>这个很好用。还在想为什么请求updateCells协议不起作用。在</p>