Commit 9f39b3ad by BellCodeEditor

save project

parent bdddb4cc
Showing with 9 additions and 6 deletions
......@@ -3,18 +3,20 @@ scr=turtle.Screen()
scr.bgcolor("pink")
p=turtle.Pen()
p.penup()
p.goto(100,-100)
p.write("你是个SB\nSB\n就是你!",font=("Times",20,"normal"))
p.goto(0,-150)
p.write("你是个SB\nSB就是你!",font=("Times",50,"normal"))
p.hideturtle()
#画爱心
a=scr.textinput("提示","你想要多大的爱心:")
len=int(a)
p1=turtle.Pen()
p1.pensize(5)
p1.pencolor("red")
p1.left(45)
p1.forward(100)
p1.circle(50,180)
p1.forward(len*2)
p1.circle(len,180)
p1.right(90)
p1.circle(50,180)
p1.forward(100)
p1.circle(len,180)
p1.forward(len*2)
p1.hideturtle()
turtle.done()
\ 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