Commit cec40095 by BellCodeEditor

auto save

parent 4244e1d8
Showing with 15 additions and 21 deletions
i=3 import turtle
username = "python" pen=turtle.Pen()
userpassword = "123456" screen=turtle.Screen()
while True: screen.bgcolor("blue")
if i>0: pen.pensize(5)
name = input("请输入用户名:") pen.pencolor("red")
password = input("请输入密码:") pen.left(45)
i-=1 pen.forward(200)
if name == username and password == userpassword: pen.circle(100,180)
print("登录成功!") pen.right(90)
break pen.circle(100,180)
if name!=username: pen.forward(200)
print('用户名“存在”,请重新输入!') pen.hideturtle()
continue turtle.done()
if password!=userpassword: \ No newline at end of file
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