fix(code): 修复调试配置未关闭,添加一些注释
This commit is contained in:
24
main.py
24
main.py
@@ -109,13 +109,13 @@ class CKWK:
|
|||||||
adapter = HTTPAdapter(max_retries=retry_strategy)
|
adapter = HTTPAdapter(max_retries=retry_strategy)
|
||||||
self.session.mount("http://", adapter)
|
self.session.mount("http://", adapter)
|
||||||
self.session.mount("https://", adapter)
|
self.session.mount("https://", adapter)
|
||||||
self.session.verify = False
|
# self.session.verify = False
|
||||||
self.session.proxies.update(
|
# self.session.proxies.update(
|
||||||
{
|
# {
|
||||||
"http": "http://127.0.0.1:9000",
|
# "http": "http://127.0.0.1:9000",
|
||||||
"https": "http://127.0.0.1:9000",
|
# "https": "http://127.0.0.1:9000",
|
||||||
}
|
# }
|
||||||
)
|
# )
|
||||||
self.username = un
|
self.username = un
|
||||||
self.host = host
|
self.host = host
|
||||||
self.password = pw
|
self.password = pw
|
||||||
@@ -640,7 +640,7 @@ if __name__ == "__main__":
|
|||||||
if p == "":
|
if p == "":
|
||||||
p = input("请输入密码: ")
|
p = input("请输入密码: ")
|
||||||
|
|
||||||
# 刷课
|
# 刷课程评论, 不需要用的时候可以直接注释
|
||||||
# r = input("是否需要评论(不需要[0],需要[1]): ")
|
# r = input("是否需要评论(不需要[0],需要[1]): ")
|
||||||
# if int(r) == 1:
|
# if int(r) == 1:
|
||||||
# isReply = True
|
# isReply = True
|
||||||
@@ -649,7 +649,9 @@ if __name__ == "__main__":
|
|||||||
# print(bool(isReply))
|
# print(bool(isReply))
|
||||||
# if u is None and p is None and c in [0, 1, 2]:
|
# if u is None and p is None and c in [0, 1, 2]:
|
||||||
# os._exit(0)
|
# 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()
|
||||||
|
|||||||
Reference in New Issue
Block a user