Commit 7cef5dd0 by BellCodeEditor

save project

parent 60d108fd
Showing with 3 additions and 3 deletions
...@@ -2,13 +2,13 @@ a="qwertyuiop" ...@@ -2,13 +2,13 @@ a="qwertyuiop"
b='1234567890' b='1234567890'
while True: while True:
name=input("请输入用户名:") name=input("请输入用户名:")
if a != name:
print('用户名错误,请重新输入:')
continue
vbnm=input('请输入密码:') vbnm=input('请输入密码:')
if a==name and b==vbnm: if a==name and b==vbnm:
print("欢迎使用!") print("欢迎使用!")
break break
if a != name:
print('用户名错误,请重新输入:')
break
if b != vbnm: if b != vbnm:
print('密码错误,请重新输入:') print('密码错误,请重新输入:')
else: else:
......
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