Commit 1fa19128 by BellCodeEditor

save project

parent 5d7566b8
Showing with 11 additions and 23 deletions
i = 3 import turtle
username = "python"
userpassword = "123456" pen=turtle.pen()
while True: distance=1
if i>0: for i in range(300)
name = input("请输入用户名:") pen.forword(distance)
password = input("请输入密码:") distance+=1
i -=1 pen.right(91)
if name == username and password == userpassword: pen.hideturtle()
print("登录成功!") turtle.done()
break \ No newline at end of file
elif name !=usernameprint("密码输入有误,请重新输入")
print("用户名和密码错误!请重新输入")
print("温馨提示:您还有"+str(i)+"次登陆机会")
continue
if password != userpassword
print("密码输入有误")
print("温馨提示:您还有" + str(i) + "此登录机会)
else:
print("你的账户已被锁定")
exit()
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