Commit c5a47b53 by BellCodeEditor

save project

parent 654bc3ba
Showing with 24 additions and 0 deletions
import turtle
screen=turtle.Screen()
screen.bgcolor("red")
pen=turtle.Pen()
p=turtle.Pen()
p.penup()
p.goto(100,-100)
p.pendown()
p.write("你好",font=("楷体",50,"normal"))
p.hideturtle()
pen.pensize(10)
pen.pencolor("green")
len=screen.textinput("提示","你想要多大的爱心")
len1=int(len)
pen.left(45)
pen.forward(2*len1)
pen.circle(len1,180)
pen.right(90)
pen.circle(len1,180)
pen.forward(2*len1)
pen.hideturtle()
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