Commit 15d31796 by BellCodeEditor

save project

parent c1766eac
Showing with 5 additions and 3 deletions
...@@ -5,7 +5,8 @@ while True: ...@@ -5,7 +5,8 @@ while True:
userpassword1=input('请输入密码') userpassword1=input('请输入密码')
if username==username1 and userpassword==userpassword1: if username==username1 and userpassword==userpassword1:
print('登录成功') print('登录成功')
else: if username!=username1:
print('用户名或密码错误') print('用户名不存在,请重新输入')
if userpassword!=userpassword1:
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