conn=MySQLdb.connect(host:"localhost",user:'root',passwd:'root',db:'test',port:3306,cursorclass=MySQLdb.cursors.DictCursor)
cur=conn.cursor()
cur.execute("select * from aa")
r=cur.fetchall()
cur.close()
conn.close()
print r
return render.aa(r)
cur=conn.cursor()
cur.execute("select * from aa")
r=cur.fetchall()
cur.close()
conn.close()
print r
return render.aa(r)
wbe.py运行错误attribute error: 'module' object has no attribute 'application 是咋回事
2017-09-14