Commit 509120ce by BellCodeEditor

save project

parent a530a1f0
Showing with 8 additions and 1 deletions
...@@ -10,5 +10,11 @@ while True: ...@@ -10,5 +10,11 @@ while True:
if name== username and password==userpassword : if name== username and password==userpassword :
print('登录成功') print('登录成功')
break break
print('错误重新输入') if name!= username and password!=userpassword :
print('此病房不存在,请再次输入')
if name!= username
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