Note If you call getpass from within IDLE, the input may be done in the terminal you launched IDLE from rather than the idle window itself.
以及:
If echo free input is unavailable getpass() falls back to printing a warning message to stream and reading from sys.stdin and issuing a GetPassWarning.
如果getpass()有问题[而且很多人都有问题],请尝试easygui ver中的passwordbox。0.96分。不过,我强烈反对0.98。它在运行代码时产生了一个错误,与0.96相反,0.96工作得非常出色,根据需要,只在框中显示星号。
从^{} 文档中:
以及:
因此,可能您的空闲环境中没有可用的
echo free input
(例如,您没有从shell启动它)。相关问题 更多 >
编程相关推荐