From 80ef2fa98d33a5dba6dc3353acc629038ba0600e Mon Sep 17 00:00:00 2001 From: zhilv Date: Sun, 30 Nov 2025 23:42:55 +0800 Subject: [PATCH] =?UTF-8?q?fix(code):=20=E4=BF=AE=E5=A4=8D=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E9=85=8D=E7=BD=AE=E6=9C=AA=E5=85=B3=E9=97=AD=EF=BC=8C?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E4=B8=80=E4=BA=9B=E6=B3=A8=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main.py | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/main.py b/main.py index 7052aae..fe1edd1 100644 --- a/main.py +++ b/main.py @@ -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()