<p>我想在python中连接一些字符串(波斯语字符串):</p>
<pre><code> for t in lstres:
with conn:
c = conn.cursor()
q="SELECT fa FROM words WHERE en ='"+t+"'"
c.execute(q)
lst=c.fetchall()
if lst:
W.<a href="https://www.cnpython.com/list/append" class="inner-link">append</a>(lst)
else:
W.append(t)
cnum=1
for can in W:
cnum=cnum*len(W)
candida=Set()
for ii in range(1,min(20,cnum)):
candid=""
for w in W:
candid+=str(" "+random.choice (w)[0]).encode('utf-8')
candida.add(candid)
</code></pre>
<p>但上面写着:</p>
^{pr2}$
<p>有什么问题吗?在</p>