Commit 0c73f112 by BellCodeEditor

save project

parent 380d5de2
Showing with 6 additions and 4 deletions
...@@ -12,10 +12,11 @@ while True: ...@@ -12,10 +12,11 @@ while True:
if username != o: if username != o:
print("账号错误") print("账号错误")
i=i-1 i=i-1
continue print("你还剩"+str(i)+"次")
if userpassword != u:
print("密码错误")
else: else:
if i==0: if i==0:
print("次数用完") print("次数用完")
continue
if userpassword != u:
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