摘要:
import MySQLdb #注意大小写!!#建立和数据库系统的连接conn = MySQLdb.connect(host='localhost',user='root',passwd='smile',db='test')#获取操作游标cursor = conn.cursor()#执行SQL,创建一个数据库.cursor.execute("""create database python""")cursor.execute('create table test& 阅读全文