existing_users = {
'adam' : 'Test123'
}
unverified_users = []
status = ""
status = input("If you have an account, type YES, NO to create a new user, QUIT to exit: ")
status = status.lower()
max_attempts = 2
import getpass
while status != 'quit':
if status == 'yes':
usr_name = input("Please provide your username: ")
usr_pwd = getpass.getpass("Enter the password")
我无法让 getpass 工作,不知道我做错了什么。如果我运行代码,系统会提示我输入用户名,然后什么都不会发生......
有什么建议么 ?