Commit 1f510534 by BellCodeEditor

save project

parent c0c00992
Showing with 16 additions and 16 deletions
import turtle
hz=turtle.Screen()
hz.textinput("画爱心","你要多大的爱心")
x=hz.textinput("画爱心","你要多大的爱心")
len=int(x)
hz.bgcolor("red")
# h=turtle.Pen()
# h.penup()
# h.goto(100,-100)
# h.write("床前明月光,\n一丝地上霜",font=("Times",15,"normal"))
# h.hideturtle()
# len=40
# hh=turtle.Pen()
# hh.pensize(17)
# hh.pencolor("blue")
# hh.left(45)
# hh.forward(2*len)
# hh.circle(len,180)
# hh.right(90)
# hh.circle(len,180)
# hh.forward(2*len)
h=turtle.Pen()
h.penup()
h.goto(100,-100)
h.write("床前明月光,\n一丝地上霜",font=("Times",15,"normal"))
h.hideturtle()
hh=turtle.Pen()
hh.pensize(17)
hh.pencolor("blue")
hh.left(45)
hh.forward(2*len)
hh.circle(len,180)
hh.right(90)
hh.circle(len,180)
hh.forward(2*len)
turtle.done()
......
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