Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我曾尝试在 python 中使用这个 getpass 函数来输入我的密码,但是当我运行代码时,我无法在终端中输入任何内容。
提前致谢!:D
在此处输入图像描述
来自 getpass-docs:
如果您从 IDLE 中调用 getpass,则输入可能在您启动 IDLE 的终端中完成,而不是在空闲窗口本身中完成。
尝试在终端窗口 cmd/bash/powershell 中运行 .py 文件!