[GCC 8.4.0] on linux
Type "help", "copyright", "credits" or "license()" for more information.
>>> import getpass
>>> f=getpass.getpass()
Warning (from warnings module):
File "/usr/lib/python3.6/getpass.py", line 62
passwd = fallback_getpass(prompt, stream)
GetPassWarning: Can not control echo on the terminal.
Warning: Password input may be echoed.
Password: pewdiepie
正如您可以清楚地看到,当我输入 pewdiepie 时,输出被回显出来......
但是这个问题并没有发生在我的终端上,但我更喜欢使用 IDLE,所以看看你能不能做点什么!!!