Commit 605967b4 by BellCodeEditor

save project

parent 5db8a3e4
Showing with 8 additions and 7 deletions
# 利用write()帮助悟空给诺依回信吧~
import turtle
def S():
screen=turtle.Screen()
screen.bgcolor("pink")
screen=turtle.Screen()
len=screen.textinput("提示","你需要多大爱心")
L=int(len)
screen.bgcolor("pink")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
......@@ -13,11 +14,11 @@ pen1.pencolor("red")
pen1.fillcolor("red")
pen1.begin_fill()
pen1.left(45)
pen1.forward(110)
pen1.circle(110/2,180)
pen1.forward(L*2)
pen1.circle(L,180)
pen1.right(90)
pen1.circle(110/2,180)
pen1.forward(110)
pen1.circle(L,180)
pen1.forward(L*2)
pen1.end_fill()
S()
pen.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