db/mysql_data.py @@ -23,6 +23,9 @@ # 调用获取游标的方法 self.cursor = self.get_cursor() def close(self): self.conn.close() # 连接数据库的方法 def get_conn(self): # **config代表不定长参数