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(
相關文章
相關標籤/搜索