Commit 5fe95db5 by BellCodeEditor

save project

parent 3c788ec8
Showing with 3 additions and 3 deletions
...@@ -2,13 +2,14 @@ a="abc" ...@@ -2,13 +2,14 @@ a="abc"
b="123" b="123"
while True: while True:
c=input("名字:") c=input("名字:")
if a!=c:
print("名字错误")
continue
d=input("密码:") d=input("密码:")
if a==c and b==d: if a==c and b==d:
print("正常") print("正常")
break break
if a!=c:
print("名字错误")
if b!=d: if b!=d:
print("密码错误") 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