Commit 76b40757 by BellCodeEditor

save project

parent 9b359eb1
Showing with 5 additions and 3 deletions
...@@ -7,6 +7,8 @@ while 1: ...@@ -7,6 +7,8 @@ while 1:
if a==username and b==userpassword: if a==username and b==userpassword:
print('登录成功!') print('登录成功!')
break break
if a !=username:
print("姓名输入错误!")
if b !=userpassword:
print("密码输入错误!")
\ No newline at end of file
else:
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