Commit 1f00a287 by BellCodeEditor

save project

parent 9ea0290c
Showing with 7 additions and 5 deletions
import turtle
b=turtle.Screen()
b.bgcolor("pink")
a=screen.textinput("大小","爱心半径")
s=int(a)
j=turtle.Pen()
j.penup()
j.goto(210,-170)
j.write("别\n\n\n\n\n巴",font=("Times",50,"normal"))
j.hideturtle()
a=100
t=turtle.Pen()
t.pencolor("green")
t.pensize(20)
t.left(45)
t.forward(2*a)
t.circle(a,180)
t.forward(2*s)
t.circle(s,180)
t.right(90)
t.circle(a,180)
t.forward(2*a)
t.circle(s,180)
t.forward(2*s)
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