pythonl连接数据库封装 析构方法

import pymysql # mysql_coon 主要的功能就是, 将连接数据库的操做变成只链接一次 # class mysql_conn(object): # 魔术方法, 初始化, 构造函数 def __init__(self): self.db = pymysql.connect(host='127.0.0.1', user='root', passwo
相关文章
相关标签/搜索