其实也没什么难的,之前卡住了,写个博客以后备用
class A(): def __init__(self): self.db = pymysql.connect(db='', host='localhost', port=3306, user='', passwd='', charset='utf8') self.cursor = self.db.cursor() def
其实也没什么难的,之前卡住了,写个博客以后备用
class A(): def __init__(self): self.db = pymysql.connect(db='', host='localhost', port=3306, user='', passwd='', charset='utf8') self.cursor = self.db.cursor() def