# coding=utf-8
from MySQLdb import connect
# 连接数据库
conn = connect(
host='127.0.0.1',
user='root',
passwd='root',
db='wsn2014',
port=3306)
from MySQLdb import connect
# 连接数据库
conn = connect(
host='127.0.0.1',
user='root',
passwd='root',
db='wsn2014',
port=3306)
cur = conn.cursor()
cur.close()
conn.close()