Python:如何在屏幕上输入密码时隐藏密码 "asterisk out"?

标签 python passwords pyscripter

Auth_url 未在此处定义,但在更长的版本中定义并成功登录。问题是,出现的输入框没有“星号”密码。有没有简单的方法来纠正这个问题?谢谢

from suds.client import Client
from suds.xsd.doctor import Import, ImportDoctor
from suds.sax.element import Element
import getpass

user = "my username"
pw = getpass.getpass("Password: ")
auth_client = Client(auth_url)
cookie = auth_client.service.authenticate(user, pw)

最佳答案

the issue is with Pyscripter. If you run the code in cmd or convert it to .exe, it should work correctly.

关于Python:如何在屏幕上输入密码时隐藏密码 "asterisk out"?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/39509491/

相关文章:

python - tkinter 显示当前标签,删除上一个

python - 大都会抽样

python - 取消设置或关闭当前模块的某些属性

r - 在 Shiny 的应用程序和多个页面中进行身份验证

python - 从 os.path.isfile() 函数接收 AttributeError

python - 如何在 Python 中创建自定义 UnitTest 报告?

python - 从 Python 将密码传递给 runas

c# - WCF:通过向每个方法传递密码来实现简单的安全性

python - 在 PyCharm 控制台中运行代码

python - 为什么 PyScripter 控制台中的输出不同?