Commit 108a105b by BellCodeEditor

save project

parent 1d70e7b7
Showing with 4 additions and 2 deletions
...@@ -10,6 +10,7 @@ while True: ...@@ -10,6 +10,7 @@ while True:
if a==5: if a==5:
print("错误次数过多,程序已关闭.") print("错误次数过多,程序已关闭.")
exit() exit()
print("用户名或密码错误!请重新输入") if name != username or password != userpassword:
a+=1 print("用户名或密码错误!请重新输入")
a+=1
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