python操作MySQL封装
下面将python操作数据库进行了封装from pymysql import connectclass JD(object):def init(self):self.conn = connect(…)self.cursor = self.conn.cursor()def __del__(self): self.cursor.close() self.conn.close...