import pymysql def get_db(): return pymysql.connect( host='localhost', user='kejingfan', password='KJF2811879', database='TESTDB' )