Python鏈接Mysql數據庫

#codin=utf-8 import pymysql def db(StrSql): db=pymysql.connect("ip地址","帳號","密碼","庫名") cursor=db.cursor() cursor.execute(StrSql) data=cursor.fetchall(); db.commit() db.clos
相關文章
相關標籤/搜索