Commit ba20c028 by BellCodeEditor

save project

parent 07858a54
Showing with 24 additions and 0 deletions
import turtle
screen=turtle.Screen()
ewq=screen.textinput("提示","爱心大小")
ewq=float(ewq)
screen.bgcolor("pink")
p=turtle.Pen()
p.penup()
p.fd(2*ewq)
p.write("你好",font=("Times",30,"normal"))
p.hideturtle()
p1=turtle.Pen()
p1.pencolor("red")
p1.pensize(3)
p1.left(45)
p1.fd(2*ewq)
p1.circle(ewq,180)
p1.right(90)
p1.circle(ewq,180)
p1.fd(2*ewq)
p1.hideturtle()
shitbro=turtle.Screen()
shitbro.bgcolor("pink")
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