fix(code): 修复调试配置未关闭,添加一些注释

This commit is contained in:
2025-11-30 23:42:55 +08:00
parent 89f8b181c5
commit 80ef2fa98d

24
main.py
View File

@@ -109,13 +109,13 @@ class CKWK:
adapter = HTTPAdapter(max_retries=retry_strategy)
self.session.mount("http://", adapter)
self.session.mount("https://", adapter)
self.session.verify = False
self.session.proxies.update(
{
"http": "http://127.0.0.1:9000",
"https": "http://127.0.0.1:9000",
}
)
# self.session.verify = False
# self.session.proxies.update(
# {
# "http": "http://127.0.0.1:9000",
# "https": "http://127.0.0.1:9000",
# }
# )
self.username = un
self.host = host
self.password = pw
@@ -640,7 +640,7 @@ if __name__ == "__main__":
if p == "":
p = input("请输入密码: ")
# 刷课
# 刷课程评论, 不需要用的时候可以直接注释
# r = input("是否需要评论(不需要[0],需要[1]): ")
# if int(r) == 1:
# isReply = True
@@ -649,7 +649,9 @@ if __name__ == "__main__":
# print(bool(isReply))
# if u is None and p is None and c in [0, 1, 2]:
# os._exit(0)
# CKWK(f"{u}", f"{p}", host_server[c][0]).run()
# 刷作业
CKWK(f"{u}", f"{p}", host_server[c][0]).work()
# 刷视频,不需要用的时候可以直接注释
CKWK(f"{u}", f"{p}", host_server[c][0]).run()
# 刷作业,不需要用的时候可以直接注释
# CKWK(f"{u}", f"{p}", host_server[c][0]).work()