Commit ce53ffba by BellCodeEditor

save project

parent a100b6b1
Showing with 25 additions and 17 deletions
import turtle username="python"
pen=turtle.Pen() userpassword="123456"
screen=turtle.Screen() i=3
screen.bgcolor("black") while True:
pen.speed(0.0001) if i>0:
color=["red","orange","yellow","blue"] name=input("请输入账号:")
a=0 password=input("请输入密码:")
for i in range(1,6000,2): i-=1
pen.pencolor(color[a])
pen.forward(i)
a+=1 if name == username and password == userpassword:
if a==4: print("输入成功")
a=0 break
pen.right(91) if name != username:
pen.hideturtle() print("用户名错误")
turtle.done() continue
\ No newline at end of file print("你还有"+str(i)+"次机会")
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