Commit c629bedc by BellCodeEditor

save project

parent b1eed364
Showing with 7 additions and 5 deletions
# 利用write()帮助悟空给诺依回信吧~ # 利用write()帮助悟空给诺依回信吧~
len=100
import turtle import turtle
screen=turtle.Screen()
len=screen.textinput("tips","set your lovesize")
lovesize=int(len)
pen=turtle.Pen() pen=turtle.Pen()
pen.color("red") pen.color("red")
pen.penup() pen.penup()
...@@ -14,11 +16,11 @@ pen1.fillcolor("yellow") ...@@ -14,11 +16,11 @@ pen1.fillcolor("yellow")
pen1.begin_fill() pen1.begin_fill()
pen1.shape("turtle") pen1.shape("turtle")
pen1.left(45) pen1.left(45)
pen1.forward(2*len) pen1.forward(2*lovesize)
pen1.circle(len,180) pen1.circle(lovesize,180)
pen1.right(90) pen1.right(90)
pen1.circle(len,180) pen1.circle(lovesize,180)
pen1.forward(2*len) pen1.forward(2*lovesize)
pen1.pencolor("black") pen1.pencolor("black")
pen1.end_fill() pen1.end_fill()
pen1.hideturtle() pen1.hideturtle()
......
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