def logInOkay():
print("You must login before proceeding")
userId = input("User ID")
userPw = input("Password")
if (userId=="Mr Leeman") and (userPw=="Treeroad!"):
return True
else:
print("Error in userId or password")
return False
我需要能够进入(treeroad!),但需要隐藏并用星号替换。在
您需要使用getch()而不是input()。在
参考this帖子上的答案。在
相关问题 更多 >
编程相关推荐