Commit 8032aa2e by BellCodeEditor

save project

parent 220804bb
Showing with 9 additions and 24 deletions
i=3 import turtle
username = "python" pen=tutrle.Pen()
userpassword = "123456" a=1
while True: for i in range(300):
if i>0: pen.forward(a)
name = input("请输入用户名:") a=a+1
c = input("请输入密码:") pen.right(91)
i=i-1 turtle.hideturtle()
if name ==username and password == userpassword: turtle.done()
print("登录成功")
break
elif name !=username :
print("账号错误")
print("老八你还有"+str(i)+"ji")
continue
else :
print("密码错误")
print("用户名和密码错误!请重新输入")
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