def __str__(self): conf = Conf() str = "访问%s失败,请检查网络连接" % conf.getDefault('TestIP') return str
def __init__(self): conf = Conf() self.DB = conf.getDefault('DBData')
def __str__(self): conf = Conf() str = "使用DB_CONNECT_STRING:%s--连接数据库失败" % conf.getDefault('DBData') return str