0
當我試圖運行以下基本的Python腳本使用psycopg2模塊中的PostgreSQL數據庫提取數據:獲取數據
cur.execute("""SELECT project from project_tlb""")
rows=cur.fetchall()
print rows[5]
輸出上面,我得到的是
('html',)
表內的值是html,它是'text'類型的。任何建議如何獲得只有值的HTML而不是('html',)?
感謝@agold,解決方案爲我 – VED