Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/ionic-framework/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python-GetPass Visual Studio警告:可能会回显密码输入_Python - Fatal编程技术网

Python-GetPass Visual Studio警告:可能会回显密码输入

Python-GetPass Visual Studio警告:可能会回显密码输入,python,Python,下面的代码是一个密码程序,用于隐藏您的输入。它适用于在线编译器repl.It,但不适用于VisualStudio。警告状态:GetPassWarning:无法控制终端上的回音。警告-可能会回显密码输入 import getpass password= getpass.getpass("Enter Password ") correctPassword= 'Lucas' while password != correctPassword: password = getpass.getp

下面的代码是一个密码程序,用于隐藏您的输入。它适用于在线编译器repl.It,但不适用于VisualStudio。警告状态:GetPassWarning:无法控制终端上的回音。警告-可能会回显密码输入

import getpass

password= getpass.getpass("Enter Password ")
correctPassword= 'Lucas'

while password != correctPassword:
    password = getpass.getpass("Enter Password Again ")

print("Success")

我不知道为什么会出现这种情况。我是否可以隐藏密码输入?

[复制此帖子][1][1]:[复制此帖子][1][1]: