INNER CODE UNIT · Python
start_learn
TechXueXi/TechXueXi · SourcePackages/pandalearning.py:42
def start_learn(uid, name):
# 0 读取版本信息
start_time = time.time()
nohead, lock, stime, Single = get_argv()
print("是否无头模式:{0} {1}".format(nohead, os.getenv('Nohead')))
cookies = user.get_cookie(uid)
if nohead == True:
TechXueXi_mode = "3"
else:
TechXueXi_mode = str(cfg_get("base.ModeType", 3))
print("当前选择模式:" + TechXueXi_mode + "\n" + "=" * 60)
if not name:
user_fullname = user.get_fullname(uid)
name = user_fullname.split('_', 1)[1]
else:
user_fullname = uid+"_"+name