Commit bd972917 by BellCodeEditor

save project

parent 07858a54
Showing with 22 additions and 0 deletions
import turtle
x=turtle.Screen()
x.bgcolor("light blue")
a=turtle.Pen()
a.penup()
a.goto(100,-100)
a.write("明月几时有,\n把酒问青天。",font=("Times",20,"normal"))
a.hideturtle()
v=x.textinput("爱心","大小?")
n=int(v)
b=turtle.Pen()
b.pensize(10)
b.pencolor("red")
b.left(45)
b.forward(2*n)
b.circle(n,180)
b.right(90)
b.circle(n,180)
b.forward(2*n)
b.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