Commit 06309aba by BellCodeEditor

save project

parent a341e74e
Showing with 26 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("green")
pen=turtle.Pen()
pen.penup()
pen.goto(100,-100)
pen.write("你好/n大香蕉.",font=("Times",30,"normal"))
pen.hideturtle()
pen1=turtle.Pen()
pen1.pencolor("red")
pen1.pensize(6)
len=screen.textinput("提示","你想要多大的爱心呀?")
lovesize=int(len)
pen.penup()
pen.goto(0,100)
pen.pendown()
pen.pensize(5)
pen.pencolor("yellow")
pen.left(45)
pen.forward(2*lovesize)
pen.circle(lovesize,180)
pen.right(90)
pen.circle(lovesize,180)
pen.forward(2*lovesize)
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