def __init__(self, app_type="kuaipan"): self.kp = Kuaipan(app_type) self.now = time.time() print(u"获取文件列表...") self.all_dir = [] self.get_ok = False thread.start_new_thread(self.walk, ()) while not self.get_ok: time.sleep(1)