class Sql_operation(object):
def __init__(self):
self.conn = pymysql.connect(**db1)
self.cursor = self.conn.cursor()
def find_all(self, sql):
try:
self.cursor.execute(sql)
data = self.cursor.fetchall()
return data
except Exception as err:
print("SQL执行错误,原因:", err)
def close(self):
self.cursor.close()
self.conn.close()
class ConciseTextCtrl(TextCtrl):
def __init__(self, parent, id=ID_ANY, value=EmptyString, pos=DefaultPosition, size=DefaultSize,
style=0, hint=EmptyString, validator=DefaultValidator, name=TextCtrlNameStr):
TextCtrl.__init__(self, parent, id=id, value=value, pos=pos
wxpython导出xlsx文件
最新推荐文章于 2024-07-13 18:02:33 发布