sqlite3.ProgrammingError:提供的绑定数不正确。当前语句使用0,并且提供了9

2024-04-25 22:34:21 发布

您现在位置:Python中文网/ 问答频道 /正文

我试图在input语句中使用input变量,但出现以下错误。在

这是我的代码:

sheetname=input("Enter the name of the SEO Analysis sheet:")
cur=conn.execute("select * from seo_info where url like '%?%'",sheetname,)
print(cur.fetchall())

这里有一个错误:

^{pr2}$

这里是another question,它解决了问题的一部分,但它仍然给我错误。
也许我的代码中遗漏了一些东西?在


Tags: ofthe代码nameseoinputexecute错误