Commit ce53ffba by BellCodeEditor

save project

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