-1
if results:
for line in results:
print line[0] + ' - ' + line[1]
的unicode MYSQL結果我需要插入一個「 - 」線之間[0]和行[1],但是,當我輸入上面的代碼中,我得到的錯誤消息「脅迫爲Unicode:需要字符串或緩衝區,int found'。任何建議在解決這個問題?插入內的Python
在此先感謝。
是的。使用'unicode's。 –