def __init__(self): self.cache_path = tools.join_path(tools.main_path(), 'cache') tools.check_or_make_dir(self.cache_path) self.path = { 'auth': tools.join_path(self.cache_path, "auth"), 'cookies': tools.join_path(self.cache_path, "cookies"), } pass
def __init__(self, session, path="学习"): self.session = session self.course_id = 0 self.lesson_id = 0 self.list = [] self.data = [] # [['filename':'',urls:[]]] self.path = tools.join_path(tools.main_path(), path) pass
def __init__(self, session, path="学习"): self.session = session self.course_id = 0 self.lesson_id = 0 self.list = [] self.data = [] # [['filename':'',urls:[]]] self.path = tools.join_path(tools.main_path(), path) self.sign = None self.size = 20 self.page = 1 self.course_name = "" self.id = None pass
def __init__(self, session, path='学习'): self.session = session self.train_id = 0 self.path = tools.join_path(tools.main_path(), path)