def __init__(self):
try:
self.connection = pymysql.connect(host="127.0.0.1",
port=3307,
user="ressie",
password="123456",
db="ressie",
cursorclass=pymysql.cursors.DictCursor)
except Exception as e:
print(e)