diff --git a/zhihu/zhihu.py b/zhihu/zhihu.py index cb06cde..64d8a1d 100644 --- a/zhihu/zhihu.py +++ b/zhihu/zhihu.py @@ -191,7 +191,8 @@ class ZhihuAccount(object): self.username = '+86' + self.username if not self.password: - self.password = input('请输入密码:') + # 输入密码不可见 + self.password = getpass.getpass("password:") @staticmethod def _encrypt(form_data: dict):