优化提示语
This commit is contained in:
+16
-3
@@ -11,6 +11,7 @@ token 需从浏览器开发者工具中获取,详见 README.md。
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import random
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
|
|
||||||
@@ -36,6 +37,19 @@ def read_token(token_file: str) -> str:
|
|||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
||||||
|
QUOTES = [
|
||||||
|
"我的答案是乱编的,但我的坚持是真的",
|
||||||
|
"孩子不会了,所以孩子放弃了",
|
||||||
|
"代码替我上课,良心替我请假",
|
||||||
|
"EF 没教会我英语,但我教会了 EF 怎么跑路",
|
||||||
|
"我提交的不是答案,是对教育系统的一封情书",
|
||||||
|
"这门课过了,但我的英语水平还卡在加载中",
|
||||||
|
"别人是来学习的,我是来给服务器刷数据的",
|
||||||
|
"如果努力有用的话,我还要写脚本干嘛",
|
||||||
|
"我和这门课,总得先疯一个",
|
||||||
|
]
|
||||||
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
parser = argparse.ArgumentParser(
|
parser = argparse.ArgumentParser(
|
||||||
description="EF Course Autopilot — 交互式循环运行",
|
description="EF Course Autopilot — 交互式循环运行",
|
||||||
@@ -103,9 +117,8 @@ token.txt 说明:
|
|||||||
success = autopilot.run()
|
success = autopilot.run()
|
||||||
if autopilot.repeat_detected:
|
if autopilot.repeat_detected:
|
||||||
print("\n⚠️ 检测到重复课程,自动循环终止。")
|
print("\n⚠️ 检测到重复课程,自动循环终止。")
|
||||||
print(" 请手动完成此课程,处理方式二选一:")
|
print(f" 「{random.choice(QUOTES)}」 —— 凯特莎")
|
||||||
print(" ① 打开F12录制HAR,从课程列表到学习完成的全流程,将har文件发给开发者优化")
|
print(" 请手动完成此课程,完成后重新运行本程序继续后续课程。")
|
||||||
print(" ② 直接手动学习完成,完成后重新运行本程序继续后续课程")
|
|
||||||
total_fail += 1
|
total_fail += 1
|
||||||
break
|
break
|
||||||
if success:
|
if success:
|
||||||
|
|||||||
Reference in New Issue
Block a user