Commit a566412d by BellCodeEditor

save project

parent 7b247bbc
Showing with 3 additions and 2 deletions
...@@ -5,10 +5,11 @@ while True: ...@@ -5,10 +5,11 @@ while True:
name=input("用户名") name=input("用户名")
password=input("密码") password=input("密码")
if username==name and userpassword==password: if username==name and userpassword==password:
print("密码正确") print("正确")
break break
if username!=name: if username!=name:
print("密码错误") print("用户名错误")
continue
if userpassword!=password: if userpassword!=password:
print("密码错误") print("密码错误")
print("欢迎来到实力至上主义的教室") print("欢迎来到实力至上主义的教室")
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