We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e968e7f commit d818c53Copy full SHA for d818c53
dailyFudan3.0.py
@@ -2,6 +2,7 @@
2
from json import loads as json_loads
3
from os import path as os_path
4
from sys import exit as sys_exit
5
+from getpass import getpass
6
7
from lxml import etree
8
from requests import session
@@ -203,7 +204,7 @@ def get_account():
203
204
else:
205
print("未找到account.txt, 判断为首次运行, 请接下来依次输入学号密码")
206
uid = input("学号:")
- psw = input("密码:")
207
+ psw = getpass("密码:")
208
with open("account.txt", "w") as new:
209
tmp = "uid:" + uid + "\npsw:" + psw + "\n\n\n以上两行冒号后分别写上学号密码,不要加空格/换行,谢谢\n\n请注意文件安全,不要放在明显位置\n\n可以从dailyFudan.exe创建快捷方式到桌面"
210
new.write(tmp)
0 commit comments