import getpass
pwd = getpass.getpass("请输入密码")
print(pwd)
04-18 14:28