我正在尝试从python批量插入,但是每次遇到相同的错误,即“提供的绑定数不正确”。我尝试将其传递为(结果),但操作相同。
results = [x for x in pool.map(check_server, serverlist) if x is not None]
cursor.executemany("INSERT OR IGNORE INTO server_errors(ip) values(?)", results)
print(str(results))
['102.103.13.23', '102.123.222.125', '1.123.222.123']