Commit d889c24f by BellCodeEditor

save project

parent 8f07c96f
Showing with 19 additions and 27 deletions
username = "python" import turtle
userpassword = "123456" pen=turtle.Pen()
i = 3 screen=turtle.Screen()
while True: screen.bgcolor("pink")
if i>0: pen.penup()
name = input("请输入用户名:") pen.goto(-100,0)
password = input("请输入密码:") pen.write("你好",font=("times",30,"normal"))
i-=1 len=50
if name == username and password == userpassword: pen1=turtle.Pen()
print("登录成功!") pen1.left(45)
break pen1.forward(len*2)
if name != username and password == userpassword: pen1.circle(len,180)
print("用户不存在,请重新输入") pen1.right(90)
print("温馨提示,您还有"+ str(i)+"登陆机会 ") pen1.circle(len,180)
if name != username and password != userpassword: pen1.forward(len*2)
print("用户不存在,请重新输入") pen1.hideturtle()
print("温馨提示,您还有"+ str(i)+"登陆机会 ") turtle.done()
if name == username and 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