INNER CODE UNIT · Python
start
TechXueXi/TechXueXi · SourcePackages/pandalearning.py:127
def start(nick_name=None):
nohead, lock, stime, Single = get_argv()
info_shread = threads.MyThread("获取更新信息...", version.up_info)
info_shread.start()
user_list = user.list_user(printing=False)
user.refresh_all_cookies()
if len(user_list) == 0:
user_list.append(["", "新用户"])
for i in range(len(user_list)):
try:
if nick_name is None or nick_name == user_list[i][1] or nick_name == user_list[i][0]:
_learn = threads.MyThread(
user_list[i][0]+"开始学xi", start_learn, user_list[i][0], user_list[i][1], lock=Single)
_learn.start()
except:
gl.pushprint("学习页面崩溃,学习终止")