Python でデータベースからデータを選択しています。
cur.execute("Select a,b,c from tab1")
print "a,b,c"
print "\n"
data = cur.fetchall()
print "".join(str(e) for e in data).replace("(","").replace(")","")
各行の最後に改行文字を入れたい。
出力は次のようになります
a,b,c
A,B,C //These values are from the database.
D,E,F
ありがとう