Commit 85f0690a by BellCodeEditor

save project

parent 8639f138
Showing with 5 additions and 1 deletions
...@@ -8,7 +8,10 @@ while True: ...@@ -8,7 +8,10 @@ while True:
if username==name and userpassword==passward: if username==name and userpassword==passward:
print("密码正确") print("密码正确")
break break
print("输入错误") if userpassword!=name:
print("用户名错误")
if userpassword!=passward:
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