Commit 311383a8 by BellCodeEditor

save project

parent 9e8c304f
Showing with 2 additions and 0 deletions
i=3
username="python" username="python"
userpassword="000123451" userpassword="000123451"
while True: while True:
...@@ -9,6 +10,7 @@ while True: ...@@ -9,6 +10,7 @@ while True:
print("登录成功") print("登录成功")
break break
elif name!=username: elif name!=username:
print("你还有"+str(i)+"次登录机会")
print("用户名错误") print("用户名错误")
else: else:
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