python鏈接mysql數據庫備忘

一、鏈接本機數據庫mysql     def __init__(self):         self.host = 'localhost'         self.port = 3306  # 端口號         self.user = 'root'  # 用戶名         self.password = "123456"  # 密碼         self.db = "chara
相關文章
相關標籤/搜索