Commit 1200387c by BellCodeEditor

save project

parent 9e9aa0a6
Showing with 6 additions and 1 deletions
......@@ -4,8 +4,12 @@ a=input("账号?")
b=input("密码?")
# 请用input()实现用户输入密码、密码的功能
while True:
if a==username and b==userpassword:
if a==username and b==userpassword::
print("登陆成功!")
if not a==username:
print("用户名不存在")
if not b==userpassword:
print("密码错误")
break
print("错误!")
# 如果用户输入的账号、密码正确,提示登陆成功
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment