Commit 85498f10 by BellCodeEditor

save project

parent 07858a54
Showing with 27 additions and 0 deletions
import turtle
o=turtle.Pen()
p=turtle.Screen()
x=p.textinput("提示","你想要多大的爱心")
x=int(x)# 利用write()帮助悟空给诺依回信吧~
p.bgcolor("purple")
o.penup()
o.goto(100,-50)
o.write("祝你快乐",font=("Times",30,"normal"))
o.goto(0,0)
o.pendown()
o.pensize(6)
o.pencolor("red")
o.left(45)
o.forward(2*x)
o.circle(x,180)
o.right(90)
o.circle(x,180)
o.forward(2*x)
o.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