Python psycopg-连接到PostgreSQL元组索引时出错超出范围

Python psycopg-连接到PostgreSQL元组索引时出错超出范围,python,sql,postgresql,psycopg2,Python,Sql,Postgresql,Psycopg2,首先,谢谢你抽出时间 我试图使用psycopg在pgadmin上运行sql,但出现以下错误: Error while connecting to PostgreSQL tuple index out of range 守则: two_list=[] 对于范围内的x(110000): single_two=(sheet.cell(行=x,列=1).value) 如果单个_two==无: 打破 其他: two_list.append(single_two[4:]) two_list=[int(i)

首先,谢谢你抽出时间

我试图使用psycopg在pgadmin上运行sql,但出现以下错误:

Error while connecting to PostgreSQL tuple index out of range
守则:

two_list=[]
对于范围内的x(110000):
single_two=(sheet.cell(行=x,列=1).value)
如果单个_two==无:
打破
其他:
two_list.append(single_two[4:])
two_list=[int(i)表示two_list中的i]
finalsql.execute(“”)选择
CONCAT('CWO-',i.issuenum)作为“两个ID”,i.summary,c.stringvalue作为“标题ID”,子字符串(a.actionbody,22,11)作为“MWO ID”,a.created作为“两个创建日期”
从…起
吉莱西,
自定义字段值c,
JIRAA行动
哪里
i、 issuenum=任何(%s)
及
i、 id=c
及
c、 customfield='10280'
及
i、 id=a.issueid
及
a、 类似actionbody的“%Content From:Video:%”;“”,(两个列表)
同样的代码适用于不太复杂的sql:

finalsql.execute(““”从jiraissue中选择创建者,其中issuenum=ANY(%s);”,(两个列表)

你知道如何解决这个问题吗?

检查
%C
是否被视为另一个
%s
占位符哎哟!太好了!非常感谢你的帮助!!!!!!!!!!干杯