Commit 50b151bf by BellCodeEditor

save project

parent 07858a54
Showing with 23 additions and 0 deletions
import turtle
t=turtle
screen=t.Screen()
a=int(t.textinput("画爱心","大小"))
t.bgcolor("lightblue")
t.penup()
t.goto(100,-100)
t.pendown()
t.hideturtle()
t.pensize(20)
t.write("你好呀!\n诺依",font=("Times",20,"normal"))
t.penup()
t.goto(0,0)
t.pendown()
t.pencolor("red")
t.left(45)
t.forward(2*a)
t.circle(a,180)
t.left(-90)
t.circle(a,180)
t.forward(2*a)
t.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