Commit 979c3e3b by BellCodeEditor

save project

parent 9e275557
Showing with 12 additions and 4 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("pink")
pen=turtle.Pen()
pen.write("离离原上草\n一岁一枯荣",font=("Times",40,"normal"))
pen.penup()
pen.goto(200,200)
pen.pendown()
pen.pensize(5)
pen.pencolor("red")
pen.left(45)
pen.forward(100)
pen.circle(50,180)
a=screen.textinput("爱心","请输入爱心的大小")
len=int(a)
pen.forward(2*len)
pen.circle(len,180)
pen.right(90)
pen.circle(50,180)
pen.forward(100)
pen.circle(len,180)
pen.forward(2*len)
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