Commit 9eccf9be by BellCodeEditor

save project

parent 1783ac4d
Showing with 11 additions and 1 deletions
...@@ -7,8 +7,18 @@ while True: ...@@ -7,8 +7,18 @@ while True:
print("登录成功!") print("登录成功!")
break break
if name!=username: if name!=username:
if password!=userpassword:
print("你是谁")
if name!=username:
if password!=userpassword:
print("密码错误")
name = input("你是什么用户名:")
else:
print("用户名错误") print("用户名错误")
continue
else:
print("用户名错误")
if password!=userpassword: if password!=userpassword:
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