Commit 7b58a1cb by BellCodeEditor

auto save

parent a1bfaf78
Showing with 26 additions and 18 deletions
import turtle
screen=turtle.Screen()
len=screen.textinput("sb","你想要多大的爱心?")
len=int(len)
pen=turtle.Pen()
pen.penup()
pen.forward(90)
......@@ -8,26 +11,25 @@ pen.write("你是我儿子,\n我是你爸爸。",font=("黑体",50,"normal"))
screen=turtle.Screen()
screen.bgcolor("dark grey")
pen=turtle.Pen()
pen.pensize(45)
pen.pensize(10)
pen.pencolor("red")
pen.left(45)
pen.circle(90.,180)
pen.circle(len,180)
pen.left(270)
pen.circle(90,180)
pen.forward(180)
pen.circle(len,180)
pen.forward(2*len)
pen.left(90)
pen.forward(200)
pen.forward(2*len)
turtle.done()
# pen.circle(50,360,3)
# pen.left(90)
# pen.penup()
# pen.forward(100)
# pen.pendown()
# pen.left(90)
# pen.circle(50,360,3)
# pen.left(90)
# pen.penup()
# pen.forward(50)
# pen.pendown()
# pen.circle(50,360)
pen.circle(50,360,3)
pen.left(90)
pen.penup()
pen.forward(100)
pen.pendown()
pen.left(90)
pen.circle(50,360,3)
pen.left(90)
pen.penup()
pen.forward(50)
pen.pendown()
pen.circle(50,360)
\ No newline at end of file
import turtle
screen=turtle.Screen()
screen.textinput("姓名框","你的名字是:")
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