Skip to content

Commit 9210bba

Browse files
committed
优化密码输入
1 parent 26f842f commit 9210bba

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Github/login.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import re
66
import requests
7+
from getpass import getpass
78

89

910
class GithubLogin(object):
@@ -61,7 +62,7 @@ def get_token(self):
6162

6263
if __name__ == '__main__':
6364
email = input('Account:')
64-
password = input('Password:')
65+
password = getpass('Password:')
6566

6667
login = GithubLogin(email, password)
6768
login.login_GitHub()

0 commit comments

Comments
 (0)