Commit 9303297c by BellCodeEditor

save project

parent a964d1a1
Showing with 11 additions and 21 deletions
username = "python" import turtle
userpassword = "123456" pen=turtle.Pen()
i=3 a=5
while True: pen.speed(50)
if i>0: pen.color("blue")
name = input("请输入用户名:") for i in range(300):
password = input("请输入密码:") pen.forward(a)
i-=1 pen.left(91)
if name == username and password == userpassword: a+=1
print("登录成功!") turtle.done()
break \ No newline at end of file
if name != username:
print("用户名不存在,请重新输入!")
continue
if password != userpassword:
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