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/