【发布时间】:2020-10-28 23:53:19
【问题描述】:
我的代码:
from getpass import getpass
def display_credentials():
website = input("Enter the name of the website:")
password = getpass("Enter master password: ")
print(website)
print(password)
if __name__ == "__main__":
display_credentials()
输出: 输入网站名称:yahoo
问题: 下一行根本不会被执行。不知道这里有什么错误。 我希望在输入网站名称后执行下一行(询问密码)。
【问题讨论】:
-
为我工作.....
-
你是如何运行这个的?什么操作系统/控制台/终端?
-
我正在使用pycharm运行代码
标签: python python-3.x input passwords getpass