# -*-coding:utf-8 -*-
# author:li_tao@neusoft.com
# 1.构造函数被调用
from dbsql import *
class chartsql():
# 成员变量
# 成员方法
def show(self):
print("showing")
# 构造函数
def __init__(self,sqlid):
# print("构造函数被执行了")
chartsqllib=loadsql()
self.sqlid=sqlid
self.sql = chartsqllib[sqlid][3]
self.t0 = chartsqllib[sqlid][1]
self.t1 = chartsqllib[sqlid][2]
self.charttype = chartsqllib[sqlid][4]
self.rslist = oracle2txt(self.sql)
# def __new__(self):
# print("new函数被执行了")
c = chartsql(1) # 构造函数被执行了
print(c.t0)