Python链接MySQL

#!/use/bin/python #coding=utf-8python import MySQLdb数据库 # 打开数据库链接  url,username,password,database db = MySQLdb.connect("localhost","root","root","cacti" )fetch # 使用cursor()方法获取操做游标 cursor = db.cursor(
相关文章
相关标签/搜索