Commit b47ac257 by BellCodeEditor

save project

parent fe24e116
Showing with 1 additions and 1 deletions
...@@ -7,10 +7,10 @@ while True: ...@@ -7,10 +7,10 @@ while True:
exit() exit()
nm = input("请输入用户名:") nm = input("请输入用户名:")
pw = input("请输入密码:") pw = input("请输入密码:")
i -= 1
if nm == un and pw == up: if nm == un and pw == up:
print("登录成功!") print("登录成功!")
break break
else: else:
print("用户名或密码错误") print("用户名或密码错误")
i = i-1
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