Commit f356f3a7 by BellCodeEditor

save project

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