Commit 5d4d1260 by BellCodeEditor

save project

parent 8c5b844e
Showing with 3 additions and 2 deletions
...@@ -11,11 +11,12 @@ while True: ...@@ -11,11 +11,12 @@ while True:
elif: elif:
username!=name: username!=name:
print("用户错误") print("用户错误")
print("还有"+str(i)"次机会")
else: else:
userpassword!=password userpassword!=password
print("密码错误") print("密码错误")
if i>3: print("还有"+str(i)"次机会")
if i>3:
exit() exit()
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