Commit 55d885cb by BellCodeEditor

save project

parent 12052e64
Showing with 18 additions and 22 deletions
import turtle zhanghu=py
pen=turtle.Pen() mima=20090418
pen.pencolor("red") name=print("请输入你的账户名:")
pen.pensize(10) ma=print("请输入密码:")
screen=turtle.Screen() a=3
screen.bgcolor("light pink") while True:
len=screen.textinput("你想要多大的爱心","20到50") if name==zhanghu and ma==mima:
pen.fillcolor("red") print("账户名正确")
pen.begin_fill() print("密码正确")
pen.left(45) print("登陆成功!")
pen.forward(len) break
pen.circle(len,180) else:
pen.right(90) print("登陆失败")
pen.circle(len,180) a=a-1
pen.forward(len) if a==0:
pen.penup() print("请稍后再试")
pen.forward(100)
pen.pendown()
pen.write("你,聪明的,\n告诉我,\n什么是快乐星球?",font=("Times",30,"normal"))
pen.end_fill()
pen.hideturtle()
turtle.done()
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