Commit 605967b4 by BellCodeEditor

save project

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