From 116acedcda532b5c9e4433e6bfea3263c34b67b2 Mon Sep 17 00:00:00 2001 From: criseLYJ <1148995537@qq.com> Date: Mon, 18 Mar 2019 09:04:55 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9F=A5=E4=B9=8E-(=E8=BE=93=E5=85=A5=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E4=B8=8D=E5=8F=AF=E8=A7=81)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zhihu/zhihu.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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):