Commit 50f2e51a by BellCodeEditor

save project

parent 8cd7f758
Showing with 3 additions and 1 deletions
username = "python" username = "python"
i=10 import turtle
i=100
userpassword = "123456" userpassword = "123456"
while True: while True:
if i>0: if i>0:
...@@ -8,6 +9,7 @@ while True: ...@@ -8,6 +9,7 @@ while True:
i-=1 i-=1
if name != username : if name != username :
print("用户名错误!请重新输入") print("用户名错误!请重新输入")
print("温馨提示:您还有"+str(i)+"次机会")
elif name==username and userpassword ==password : elif name==username and userpassword ==password :
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