擅长:python、mysql、java
<p>您忘记传递<a href="https://dev.mysql.com/doc/connector-python/en/connector-python-api-mysqlcursor-executemany.html" rel="nofollow noreferrer">executemany method parameters</a>:</p>
<pre><code>result = cursor.executemany(sql_insert_query,records_to_insert)
</code></pre>
<blockquote>
<p>MySQLCursor.executemany() Method
Syntax:</p>
<pre><code>cursor.executemany(operation, seq_of_params)
</code></pre>
<p>This method prepares a database operation (query or command) and executes it against all parameter sequences or mappings found in the sequence seq_of_params.</p>
</blockquote>
<p>另外,您的语法错误(删除引号),请使用以下内容:</p>
^{pr2}$