Commit 8a409675 by BellCodeEditor

save project

parent 07e0aad0
Showing with 9 additions and 23 deletions
i=3 import turtle
username = "python" pen = turtle.Pen()
userpassword = "123456" i = 10
while True: for i in range(300):
if i>0: pen.forward(i)
name = input("请输入用户名:") pen.right(91)
if name != username: i += 2
print("没有此账号") turtle.done()
i-=1 \ No newline at end of file
print("温馨提示:你还有"+str(i)+"次登录机会")
else:
password = input("请输入密码:")
if password != userpassword:
print("不匹配")
i-=1
print("温馨提示:你还有"+str(i)+"次登录机会")
else:
print("登录成功!")
break
else:
print("你的登录次数已经用完")
exit()
\ 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