Commit c494c9fe by BellCodeEditor

save project

parent 2f415b88
Showing with 5 additions and 1 deletions
...@@ -8,7 +8,10 @@ while True: ...@@ -8,7 +8,10 @@ while True:
if name==username and word==userpassword: if name==username and word==userpassword:
print("登陆成功") print("登陆成功")
break break
if name!= username:
print("账号错误")
print("输入错误") if word != userpassword :
print("密码错误")
print("欢迎使用") 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