标签:style blog ar color os 使用 sp for on
比较简单,直接上代码了。
import MySQLdb def showResult(res): for i in res: print i conn=MySQLdb.connect(host="localhost",user="root",passwd="123456",db="cloud",charset="utf8") cursor = conn.cursor() cursor.execute(‘select * from filelist‘) res = cursor.fetchall() showResult(res)
标签:style blog ar color os 使用 sp for on
原文地址:http://www.cnblogs.com/instant7/p/4156207.html